GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SWF::SOUNDINSTANCE (3)

.ds Aq ’

NAME

SWF::SoundInstance - SWF Sound Instance class

CONTENTS

SYNOPSIS



        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);



DESCRIPTION

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.

METHODS

$snd_instance->noMultiple() Prohibits starting sound if sound is already playing.
$snd_instance->loopInPoint($point) Sets the loop start $point counted in samples.
$snd_instance->loopOutPoint($point) Sets the loop’s last sample to play.
$snd_instance->loopCount($count) Sets loop count. The default value is 1 loop.
$snd_instance->addEnvelope($mark44, $left, $right) 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);



AUTHOR

developers of ming.sourceforge.net, Albrecht Kleine

SEE ALSO

SWF, SWF:: Movie, SWF::MovieClip, SWF::Button, SWF::Sound, SWF::SoundStream, SWF::Constants
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 .::SWF::SOUNDINSTANCE (3) 2015-05-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.