1.::SWF::SoundInstance(3U)ser Contributed Perl Documentati.o:n:SWF::SoundInstance(3)
2
3
4

NAME

6       SWF::SoundInstance - SWF Sound Instance class
7

SYNOPSIS

9               use SWF::Sound;
10               use SWF::SoundInstance;
11               $sound = new SWF::Sound("test.mp3");
12               $snd_instance = $movie->startSound($sound);
13               $snd_instance->loopInPoint(4000);
14               $snd_instance->loopOutPoint(8000);
15               $snd_instance->loopCount(2);
16

DESCRIPTION

18       SWF::SoundStream is a helper class useful for setting information about
19       a sound instance. There is no constructor method, SWF::SoundStream
20       objects are available only thru:
21
22       startSound() method of SWF::Movie,
23       startSound() method of SWF::MovieClip,
24       addSound()   method of SWF::Button.
25

METHODS

27       $snd_instance->noMultiple()
28           Prohibits starting sound if sound is already playing.
29
30       $snd_instance->loopInPoint($point)
31           Sets the loop start $point counted in samples.
32
33       $snd_instance->loopOutPoint($point)
34           Sets the loop's last sample to play.
35
36       $snd_instance->loopCount($count)
37           Sets loop count. The default value is 1 loop.
38
39       $snd_instance->addEnvelope($mark44, $left, $right)
40           Adds a SoundEnvelope to event sound. Parameters are $mark44, the
41           Position in 44khz samples, and volumes both for left and right
42           stereo channel.  Next example will mute the right channel:
43
44                   $snd_instance->addEnvelope(0,10000,0);
45

AUTHOR

47       developers of ming.sourceforge.net, Albrecht Kleine
48

SEE ALSO

50       SWF, SWF:: Movie, SWF::MovieClip, SWF::Button, SWF::Sound,
51       SWF::SoundStream, SWF::Constants
52
53
54
55perl v5.30.0                      2019-10-02          .::SWF::SoundInstance(3)
Impressum