re[Openal] ading data
Chris Robinson
chris.kcat at gmail.com
Mon May 19 00:40:32 PDT 2008
On Monday 19 May 2008 12:15:31 am bonanza wrote:
> alGetBufferi(_buffer, AL_BITS, &bytes_per_sample); // 8
Don't forget to divide that by 8. :)
But you shouldn't rely on what's returned here. Because OpenAL may convert it
when loaded, the returned channels/bits/frequency may not match what it was
originally loaded with. You have to use the values you passed to
alBufferData.
More information about the Openal
mailing list