Excellent! Yes, thats essentially what I need to do.
[size=9px](Jer: You know of delta encoding I see. )[/size]
The issue with OpenAL is that it doesn't accept signed sample data. So I have to convert it all from the allocation that I have that will either be 16-bit or 8-bit. After I have a converted/decoded allocation of memory THAT is my sample so I won't need to manipulate it further. Just feed it, or part of it, into an AL sound buffer for mixing/playback.
The problem is 2-fold. [size=9px](or 3 if you consider the delta encoding)[/size] So I don't want to get into the second part in this thread much as I just want to figure out the manipulation of memory for now.
In THIS THREAD I have posted the question of how I take audio sample data that is signed and properly convert it to unsigned. The data will obviously remain the same byte-size, but will merely go from signed to unsigned.
So I'd be taking a ShortInt(8-bit signed) and turning it into a Byte(8-bit unsigned).
...and then...
taking a SmallInt(16-bit signed) and turning it into a Word(16-bit unsigned).
Bookmarks