Sound

The Sound class is used to access the scene's soundtrack in part or in whole. The scripting environment can receive notifications when scene frame is ready.

The following is a list of the Sound functions:

getSoundtrack
getSoundtrackAll
setChannelCount
setChannelSize
setFrameRate
setSampleRate

Example

// Retrieves a 16 bit 48 KHz stereo soundtrack of frames 50 to 100.

sound.setSampleRate(48000);

sound.setChannelSize(16);

sound.setChannelCount(2);

var soundFile = sound.getSoundtrack(50, 100);

MessageBox.information("Soundtrack file location: " + soundFile.path());

Related Topics 

Scripting Reference