pause-play-pause-play hangs sometimes
I've recorded some MP3s encoded with lame as follows (tested these options):
lame -b48 --lowpass 12 -q0 -a -mm file.wav file.mp3
lame -b64 --lowpass 12 -q0 -a -mm file.wav file.mp3
lame -b48 -q0 -a -mm file.wav file.mp3
lame -b48 -q0 -mm file.wav file.mp3
The file plays perfectly nice. But when I pause and quite fast press play again then sometimes the playback hangs. It repeats the last sound loop multiple times until the end of the file. Something like 'ra ra ra ra ra ra ra ra' etc. depending on the sound last heard.
Debug console output:
SMSound._onfinish(): "audio_item_139"
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.play(): "audio_item_139"
soundManager.stopAll()
SMSound._onfinish(): "audio_item_139"
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.play(): "audio_item_139"
SMSound._onload(): "audio_item_139" loaded.
soundManager.load(): /files/f7x0kyhf1.mp3
SMSound() merged options: { id: audio_item_139, url: /files/f7x0kyhf1.mp3, autoLoad: true, autoPlay: false, stream: false, onfinish: { _showPlay(baseElm);}... }, onstop: { _showPlay(baseElm);}... }, onload: { this.play();}... }, onbeforefinishtime: 5000, onjustbeforefinishtime: 200, multiShot: true, pan: 0, volume: 100 }
soundManager.createSound(): audio_item_139 (/files/f7x0kyhf1.mp3)
"audio_item_139" is an invalid sound ID.
soundManager.onload() complete
soundManager.initComplete(): calling soundManager.onload()
soundManager: Waiting for window.onload()
-- SoundManager 2 loaded (OK) --
(Flash): Enabling polling
Flash security sandbox type: remote
(Flash): _externalInterfaceTest(): JS to/from Flash OK
Attempting to call Flash from JS..
-- soundManager.init() --
soundManager._externalInterfaceOK()
(Flash): Flash to JS OK
soundManager._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got EMBED element (created via JS)
soundManager._createMovie(): Trying to load /sm2.95a/soundmanager2.swf
-- SoundManager 2 V2.95a.20090501 (AS2/Flash 8) --
What can I try to fix this?
Download the file here: http://inovia.nl/1250179236.mp3
lame -b48 --lowpass 12 -q0 -a -mm file.wav file.mp3
lame -b64 --lowpass 12 -q0 -a -mm file.wav file.mp3
lame -b48 -q0 -a -mm file.wav file.mp3
lame -b48 -q0 -mm file.wav file.mp3
The file plays perfectly nice. But when I pause and quite fast press play again then sometimes the playback hangs. It repeats the last sound loop multiple times until the end of the file. Something like 'ra ra ra ra ra ra ra ra' etc. depending on the sound last heard.
Debug console output:
SMSound._onfinish(): "audio_item_139"
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.play(): "audio_item_139"
soundManager.stopAll()
SMSound._onfinish(): "audio_item_139"
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.resume()
SMSound.togglePause()
SMSound.pause()
SMSound.play(): "audio_item_139"
SMSound._onload(): "audio_item_139" loaded.
soundManager.load(): /files/f7x0kyhf1.mp3
SMSound() merged options: { id: audio_item_139, url: /files/f7x0kyhf1.mp3, autoLoad: true, autoPlay: false, stream: false, onfinish: { _showPlay(baseElm);}... }, onstop: { _showPlay(baseElm);}... }, onload: { this.play();}... }, onbeforefinishtime: 5000, onjustbeforefinishtime: 200, multiShot: true, pan: 0, volume: 100 }
soundManager.createSound(): audio_item_139 (/files/f7x0kyhf1.mp3)
"audio_item_139" is an invalid sound ID.
soundManager.onload() complete
soundManager.initComplete(): calling soundManager.onload()
soundManager: Waiting for window.onload()
-- SoundManager 2 loaded (OK) --
(Flash): Enabling polling
Flash security sandbox type: remote
(Flash): _externalInterfaceTest(): JS to/from Flash OK
Attempting to call Flash from JS..
-- soundManager.init() --
soundManager._externalInterfaceOK()
(Flash): Flash to JS OK
soundManager._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got EMBED element (created via JS)
soundManager._createMovie(): Trying to load /sm2.95a/soundmanager2.swf
-- SoundManager 2 V2.95a.20090501 (AS2/Flash 8) --
What can I try to fix this?
Download the file here: http://inovia.nl/1250179236.mp3
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hmm. I tried loading your test sound, and wasn't able to get the sound to stutter when calling togglePause() a few times each second. The sound had probably loaded fully by the time I was pausing/resuming, for what it's worth.
Are you perhaps calling togglePause() twice or more in quick succession, eg. with a very small delay? It's possible there may be a timing issue in some cases, though I haven't seen any issues in my API tests etc.
Out of curiosity, what OS are you on? (I test on Windows XP and Mac OS X, mostly.)
-
Inappropriate?Hm no not really. I just call the togglePause on regular intervals.
My info:
Browser: FF 3.5.3
Flash: Shockwave Flash 9.0 r124
OS: Vista Ultimate 64 bit
Loading Profile...



EMPLOYEE