| | | TwiztedBreeze |  |
| Posted: 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. |
|