re[Openal] ading data
bonanza
mail at wr-media.net
Sun May 18 22:09:06 PDT 2008
Hi,
i like to try to read the raw data in the wav-file
ALsizei size;
ALvoid* data;
alutLoadWAVFile("path", &format, &data, &size, &freq);
is the size (ALsizei size) not the same as the offset in
int offset;
alGetSourcei(Source, AL_BYTE_OFFSET, &offset); ???
my size is 1323000
the offset at the end of the sound ist 950272
i like to read the data somthing like that:
int offset;
alGetSourcei(Source, AL_BYTE_OFFSET, &offset);
int x = ((char*)data)[offset];
but that seems to be wrong, right?
--
View this message in context: http://www.nabble.com/reading-data-tp17248110p17248110.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
More information about the Openal
mailing list