0
0

Hi…

I like the efficiency of streams but don’t like the disk IO hit that we always take, so I switched over to our own buffer and FMOD_OPENMEMORY.

This works great and I was hoping to expand it to play multiple streams from the same memory buffer, but I didn’t realize that streams instanced from memory suffer from the same limitations as streams instanced from disk, that is, that only one stream per buffer/file handle can be played at one time.

Is this correct? I tried it with FMOD_System_CreateSound() too, but then we take a hit when our buffer gets copied to the internal Fmod buffer.

Thanks,

David

  • You must to post comments
0
0

You can use create sound without copying the data by using FMOD_OPENMEMORY_POINT instead of FMOD_OPENMEMORY.

The reason that you can’t have only one buffer/file handle is because two stream may be at different positions in data. The only way to guarantee that there is enough data in the buffer is to load the entire sound into memory which is what createSound is used for.

-Pete

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.