I’ve used Windows’ mmsystem.h before to play sound for an internet conversation program. Here I could fill a buffer with raw audio and play it on the client. Now I’m trying to implement it using FMOD cause I need to change the frequency runtime and use multiple channels.
When my UDP packets with sound arrive I put them in a queue and then play them something like this:

    FSOUND_SAMPLE* sample = audioqueue.front();
    FSOUND_PlaySound(0, sample);

I’ve realised that FSOUND_PlaySound flush the buffer and start the new sample as soon as the function is called, unlike winmm which puts the samples in a buffer. How do I keep FMOD from flushing the buffer and instead buffer the sound for playback?

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.