0
0

I still have trouble playing some MP3 files, I now narrowed it down to: FSOUND_Stream_Open returns 0, for some files when I try to open files from storage card, folder SDMMC\Music\.

Any ideas?


I have used this exampel to create a Mp3-player that playes most files!!!

http://52.88.2.202/forum/viewtopic.php?t=4874.

For some reason some of the files does not get initialised. In most cases it helps if I changes the file name of the mp3-file..

FMOD.PPC.Open(soundStream, 0x100, 0, 0) returns 0 for some files.

When i call GetLastWin32Error() it returns 2 what do does this mean?

Does anybody have an idea about what could cause this?

Kristian

  • You must to post comments
0
0

I found a bug in the sample .NET wrapper function, that causes it to open most but not all files. search for "Bug in sample GetStream routine" in the topic you referenced.

Let me know if that helps

Cheers
Ronny

  • You must to post comments
0
0

YYYYEEEEEAAAARRRRRR, you are my new best friend….(o:

It works perfectly so far, so I say you solved my problem (o:.

Thanks a lot, I really needed it to work so it was quite frustrating. Keep up the good work (o:

  • You must to post comments
0
0

I made a work around just before you posted, that seemed to work, but i don´t consider it a real solution.

        if (soundHandle == IntPtr.Zero)
        {
            IntPtr soundStream2 = fmod_getStream("\\" + file);
            soundHandle = fmod_Open(soundStream2, 0x00000010 | 0x00000020 | 0x00000100, 0, 0);
        }

I guess(after reading your comments) it work by chance because I change the length of the string.

  • You must to post comments
0
0

I’m glad it worked! It took me a few good hours finding that one…

Cheers
Ronny

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.