Hey, I'm assisting in a project I can't disclose until it's release, and we've run into a bit of a problem.
Say you have a 32 or 16 bit audio buffer, it gets the bytes from an imported file.
Now, make a copy of that same array, but reverse it. Now if you were to start playing the audio buffer, and halfway through, decide to reverse it,
you hit a reverse button and it finds whatever byte you're at in Buffer 1, but it finds it in Buffer 2 and moves forward in that buffer.
Recap:
Buffer 1 is forwards
Buffer 2 is reversed
hitting the reverse button will find the byte you're at in Buffer 1, but in Buffer 2 so that when it moves forward in buffer 2, it'd be the same as moving backwards in buffer 1.
Now, there's also an automatic replay option. when it reaches the end of the buffer you're playing, it will go to the opposite end and continue to play from there.
This works fine in buffer 1,
But in Buffer 2, you start to lose bytes and the sound appears sped up and whatever speech you have loaded seems nearly inaudible. It only does so when the automatic replay function is on.
Does anyone have any ideas as to why this might be?
Thanks, I really appreciate any help!


Reply With Quote
