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::SOUNDSTREAM (3)

.ds Aq ’

NAME

SWF::SoundStream - SWF Sound Stream class

CONTENTS

SYNOPSIS



        use SWF::SoundStream;
        my $soundstream = new SWF::SoundStream("wau.mp3");
        print $soundstream->getDuration();
        ##  print $soundstream->getFrames();    # wont work until it belongs to movie
        $movie->setSoundStream($soundstream);
        print $soundstream->getFrames();        # but _now_ it is okay (but anyway deprecated)



DESCRIPTION

SWF::SoundStream is a helper class useful for adding sound into SWF applications.

METHODS

$soundstream = new SWF::SoundStream($filename) Creates a SWF::SoundStream object. If the file can’t be opened the constructor will return an undef value of course. The filename is the valid name of any mp3 or flv file.
$dura = $soundstream->getDuration() This function returns the duration of a given stream in ms. Works for streams of mp3, flv types only. On other cases it returns 0.
$frames = $soundstream->getFrames() Using getFrames() is deprecated, better use getDuration(). getFrames() returns the number of movie frames necessary to play the full sound stream. For this reason it works only if the sound stream object was added to a movie, and also only for streams of mp3 -files.

AUTHOR



        developers of ming.sourceforge.net, Albrecht Kleine



SEE ALSO

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


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

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