0
0

I have some looping wav samples that I play forward and reverse. When playing a sample forward, it loops fine. When playing in reverse and the beginning is met, it jumps to some point in the middle, not the end as I expect it to. On each particular file is seems to jump to the same position in the middle every time, but the position varies with each different wav. Any idea what is going on?

  • You must to post comments
0
0

I am not using (explicitly any way) loop points, is there any way I can muck with them to work around this? Or can I maybe use a callback to reposition the play point? (Does the end callback get called if you are plaing in reverse and you reach the beginning?) I think, at the very least, I should be able to poll the position in the sample every frame and move the position myself if it reaches the begining in reverse playback mode, but I am hoping for a better solution.

Aonther question: I am using F_API FSOUND_Sample_Lock to get a pointer to the wav file data, so I can draw the waveform. The function seems to always return false, but the pointer and length are valid after the return (the first ones, the second ones are both 0). Any idea what is going on there?

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.