0
0

What is the prefered way to create a pcm-stream that is continually loaded with new audio each frame? I tried modifying ‘usercreatedsound’ by calling FMOD_CHANNEL::SetPosition manually when close to the end of the pcm-buffer and it made a pop ( probably obvious this solution would not work ).

Thanks, Matt

  • You must to post comments
0
0

usercreatedsound using a stream continually feeds the buffer, you dont need to call setposition – the example already does what you want to do doesnt it? The sinewaves are continous data.

  • You must to post comments
0
0

When running the app ‘usercreatedsound’ I put a breakpoint in the ‘pcmreadcallback’ callback. The breakpoint gets hit several times, but eventually it will no longer break. Therefor it seems that there’s something else that needs to be done to continually feed data to the pcm-buffer. Maybe I need to call SetPosition(0) every so often? When I did that though there were pops.

Thanks, Matt

  • You must to post comments
0
0

You are choosing ‘play as a stream’ right? When i do this it goes forever, and the callback goes forever too. Put a printf or something in there you will see it happen.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.