0
0

calling setPosition() on some mp3s is throwing an exception.

if i call channel.Close() or sound.release() afterwards, then my program locks up. calling system.release() locks up too.

if i don’t make those calls and just try to reinit, then it locks up when i call system.PlaySound()

is there something else i should be doing to recover from a bad file?

Thanks,
casey

  • You must to post comments
0
0

yes

  • You must to post comments
0
0

my app is using FMOD to do music processing, not playback. its running with NOSOUND_NRT. it jumps around the song using setPosition(), system.update(), and then calls getSpectrum().

from testing with about 75 songs, it has failed on 3. it always fails on setPosition() for the same songs, and then i have to restart my app to get it to work again. i’m hoping that i can somehow reset FMODs state (so i dont have to restart my app) and it could just ignore the occasional song that won’t process.

Thanks,
casey

  • You must to post comments
0
0

Brett helped me out on this and found that my call to Channel.setPosition was failing because it wasn’t finding a valid frame.

He recommended that i call createSteam with the FMOD_ACCURATETIME flag to force it to find a valid mpeg boundary.

That is working great, and i’m no longer getting errors from calls to setPosition()

Thanks,
casey

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.