0
0

Hello,

I’ve been having a big problem with the stream callbacks using FMOD 3.75. I have an Ogg Vorbis decoder that is filling a buffer with audio, but it isn’t being played correctly when copied to the destination buffer in the user stream callback. There are lots of clicks at every frame, and I’ve tried everything to make it work normally, to no avail.

When I decode all the audio and dump it to a RAW file, the whole soundtrack plays correctly, so it’s not a problem with the Vorbis decoder. If I dump the buffer from inside the callback and play the RAW file, I hear the same horrible clicking.

I think it must be something regarding the buffer being called too many times, but I don’t think it’s a problem of it being filled too slowly, as it’s just a simple decode loop.

Can anyone help me with this? I have a task to deliver and I’m increasingly running out of options. Help!!

Thank you!

  • You must to post comments
0
0

if you’re filling the buffer / doing the decoding (presumably with an external decode library – why by the way? All you are doing is streaming an ogg, which fmod already does by default without using a user stream), and you’re dumping the pcm data out and it sounds bad, then it must be your decode function?

If you see the user stream example, it fills the buffer with a sine wave, if it does that, then look closely to see your input isnt wrong, because if it makes a noise, then it is your input which is introducing the noise.

I can only suggest make sure you are filling all the data that fmod asks for, and in the right format (whatever format you specified in FSOUND_Stream_Create)

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.