0
0

FSound_Stream_Read(stream, buf, sizeof(buf));

would be soooooohhhhhhcooooolllll!

Thomas

  • You must to post comments
0
0

hello brett,

thx alot for implementing this one… also the “OPEN_ONLY” is for me a very good add on… my library scan in my player project will love this…

i will give it a try in a couple of days and let you know…..

Thomas

  • You must to post comments
0
0

Hello :)

I am trying to use ReadData in C#… I know it is unsupported or kindof, but I think it could work…

I already converted some parts of fmod.h (into C#), that allowed me to play a mp3, and hear the sound… it worked perfectly.

But now, I want to use FMOD_Sound_ReadData… and here comes the problem : my application vanishes when I call FMOD_Sound_ReadData… it disappears, without saying goodbye or anything.. no error message, no exception, nothing… it just closes.

I created the system and initialized it with FMOD_INIT_NONREALTIME, then I created a stream with FMOD_OPENONLY, and after that, I call FMOD_Sound_ReadData, with a buffer of 4096 bytes, already created…

I wondered : do I have to set the buffer size, or start to play the sound, or something else, before calling the ReadData ?

thanks…

  • You must to post comments
0
0

In fact, it was because I asked FMOD to fill a Managed buffer, and apparently, .NET doesn’t like it :)

If I create an unmanaged buffer, and the copy it to a managed buffer, it works very well !!

That’s so kewl :)

Thanks for the wonderfull decoder…

  • You must to post comments
0
0

Hello !

I have a little problem… It seems as if FmodEx was decoding the whole mp3 into memory when I load it… and therefore uses a huge amount of ram !

I create the system, then init it with FMOD_INIT_NONREALTIME…

For each sound I create, I use FMOD_OPENONLY | FMOD_CREATESTREAM, which I thought was creating a stream (like Fmod3 it says in the doc)…

And when I look at the amount of memory used by my program, I seems as if fmod was reading the whole mp3 when I load it…

Any idea why ?

(after, I’m using the ReadData function)

Thanks

  • You must to post comments
0
0

It takes a long time (about 4 or 5 secs) to open my MP3 of 65minutes, and when I look in the task manager (even if it includes all the dlls fmod uses), the memory usage of my program jumps to 650mo !

Any idea ?

  • You must to post comments
0
0

OK, that works… but I don’t know why it said it used 650mb the other day…

Thanks…

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.