Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash

Sound Pause & Play

 
Jump to:  
 
TwiztedBreeze
PostPosted: Fri Jul 11, 2008 3:07 pm    Post subject: Sound Pause & Play
       
After many hours of trying to figure out where my bug was when trying to jump
into a particular location of an audio file I've discovered the following:

In Flash Version 9,0,124,0

MP3 File Format
*less than 64 bit sample rate(stereo & mono)
*64 bit stereo(stereo)

With those MP3 file formats, calling Sound.play with a position greater than
50% of the reported length of the audio file will not work. The file will not
play from that position. Even if you set the position prior to the halfway
point, the channel won't report the correct current position nor fire a
SOUND_COMPLETE event.

The length value is reporting the correct duration of the MP3 file for these
formats.

You cannot give the user the ability to "jump" anywhere into the sound file if
you use these formats. These formats work properly but I haven't tested any
other format higher than 128 bit.

These work:
64 bit (mono)
128 bit (mono & stereo)

Hope this helps.

Happy coding.
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

Kujawsko-Pomorski Są pewne sprawy - Grzegorz Turnau grecja hale namiotowe sztuka starożytna