re[Openal] ading data
bonanza
mail at wr-media.net
Mon May 19 00:15:31 PDT 2008
Thanks for your help.
alGetBufferi(_buffer, AL_CHANNELS, &channels); // 1
alGetBufferi(_buffer, AL_BITS, &bytes_per_sample); // 8
alGetBufferf(_buffer, AL_FREQUENCY, &freq); // 44100
alGetSourcef(_source, AL_SEC_OFFSET, &stime);
int offset = (int)(stime*freq) * channels * bytes_per_sample;
i get this output now:
Offset:352800 <- start
Offset:705600
Offset:1058400
Offset:1411200 <-end
looks strange.
--
View this message in context: http://www.nabble.com/reading-data-tp17248110p17312509.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
More information about the Openal
mailing list