0
0

Hi,

I’m using FSOUND_Stream_Open to load raw PCM data for playback. The PCM data is sampled at 22kHz and should be played back at that rate. How would I go about specifying the frequency for this stream? Or, a related question, what frequency does it default to?

I have tried setting the frequency on the channel that will be used to play back the stream. What happens is that the audio starts to play correctly (at 22kHz) but gets cut off before it can complete. I also tried setting the channel frequency to 44 kHz. The stream then plays back in its entirety (at the faster rate, of course). What’s weird is that the time it takes to play the stream at 44 kHz is exactly how long the stream plays at 22 kHz before getting cut off. (Yes. I timed this on a bunch of different PCM data to make sure it’s not just a coincidence.)

It’s as if the stream has been set up to playback for as long as it would take at 44 kHz, no matter what frequency is actually set on the channel.

Any help would be great.

Pete

  • You must to post comments
0
0

Thanks Brett,

You certainly fixed the problem. Can I count on this fix being included in the next stable release of fmod?

Pete

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.