07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ADOBE DIRECTOR BASICS<br />

Audio mixers and sound objects<br />

mixer.toChannels<br />

mixer.useMatrix<br />

Currently, panMatrix, toChannels and useMatrix share a single entry in the Scripting Dictionary. In the<br />

alphabetical Scripting Dictionary, these will need to be divided into separate entries.<br />

The following properties can only be set while the mixer has a status of #stopped. Attempts to change the value of<br />

these properties will fail silently if the mixer is not stopped.<br />

mixer.bufferSize<br />

mixer.numBuffersToPreload<br />

mixer.sampleRate<br />

mixer.bitDepth<br />

You can set the volume of a mixer at any time using mixer.volume.<br />

The Audio Mixer Inspector does not give you access to the following properties; You need to use Lingo or JavaScript<br />

syntax with these properties:<br />

Read-write properties:<br />

mixer.panMatrix<br />

mixer.useMatrix<br />

Read-only properties:<br />

mixer.channel<br />

mixer.elapsedTime<br />

mixer.isSaving<br />

mixer.status<br />

Sound objects<br />

A sound object defines the audio data that is added to a mixer. Sound objects contain the actual sound data that is to<br />

be played. Sound data may come from a variety of sources:<br />

An audio file (either stored locally or retrieved over a network connection)<br />

An audio cast member<br />

A streaming cast member<br />

A byteArray<br />

You can add audio filters to a sound object to create a range of effects. These effects are applied before the sound data<br />

is transferred to the mixer for playback. Additional audio filters can be added to the mixer.<br />

A sound object cannot exist independently of a mixer. If you delete a sound object from its parent mixer, any variables<br />

that refer to the sound object will be set to VOID. You can, however, transfer a sound object from one mixer to another.<br />

When you save your movie, the current settings for all the sound objects will be saved in their parent mixers.<br />

Last updated 8/26/2011<br />

402

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!