SWF::SoundInstance - SWF Sound Instance class
use SWF::Sound; use SWF::SoundInstance; $sound = new SWF::Sound("test.mp3"); $snd_instance = $movie->startSound($sound); $snd_instance->loopInPoint(4000); $snd_instance->loopOutPoint(8000); $snd_instance->loopCount(2);
SWF::SoundStream is a helper class useful for setting information about a sound instance. There is no constructor method, SWF::SoundStream objects are available only thru:
startSound()
method of SWF::Movie,
startSound()
method of SWF::MovieClip,
addSound()
method of SWF::Button.
noMultiple()
Prohibits starting sound if sound is already playing.
loopInPoint($point)
Sets the loop start $point counted in samples.
loopOutPoint($point)
Sets the loop's last sample to play.
loopCount($count)
Sets loop count. The default value is 1 loop.
Adds a SoundEnvelope to event sound. Parameters are $mark44, the Position in 44khz samples, and volumes both for left and right stereo channel. Next example will mute the right channel:
$snd_instance->addEnvelope(0,10000,0);
developers of ming.sourceforge.net, Albrecht Kleine
SWF, SWF:: Movie, SWF::MovieClip, SWF::Button, SWF::Sound, SWF::SoundStream, SWF::Constants =cut