0
0

We’re doing some testing with the fmodce library to play mp3 sound files on the Cassiopeia E-700 (= EM-500 model in the US). So far everything worked great and we’re really happy with it, but we noticed that in certain cases audio play does not work.

Further investigation learned us that the program “hangs” when calling FSOUND_Stream_OpenFile. Since the audio files are stored on the SD memory card, and since we know that the E-700 sometimes “looses contact” with the memory card, I have a feeling that we’re unable to create a handle to the audio file we’re trying to play.

Normally, if contact is “lost”, then FSOUND_Stream_OpenFile simply fails (which means it returns immediately). We then pull out the memory card, plug it back in and the problem is solved, so that’s not really an issue (well, it is, but it’s a hardware issue).

Has anyone else encountered this problem where the application freezes completely because OpenFile does not return?

m_Audio_stream = FSOUND_Stream_OpenFile(s, FSOUND_NORMAL | FSOUND_2D | FSOUND_MPEGACCURATE, 0);

All MP3 files are 5-35 KB in size, so the FSOUND_MPEGACCURATE should not be causing too much overhead.

Peter

  • You must to post comments
0
0

I am having the same problem but with WAVs. In our case, we have implemented all of the callbacks and FSOUND_Stream_OpenFile is not stuck in any of them. The stream starts playing successfully, but FSOUND_Stream_OpenFile doesn’t return for several seconds.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.