-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Excuse me
I want get second play of the time buffer
I wrote this code.
float offset;
alGetSourcef(source, AL_SEC_OFFSET, &offset);
return offset;
But, I was not able to do so.
I was able to get in this code.
float offset;
alGetSourcef(source, AL_BYTE_OFFSET, &offset);
ALint bufferID, frequency, bitsPerSample, channels;
alGetSourcei(source, AL_BUFFER, &bufferID);
alGetBufferi(bufferID, AL_FREQUENCY, &frequency);
alGetBufferi(bufferID, AL_CHANNELS, &channels);
alGetBufferi(bufferID, AL_BITS, &bitsPerSample);
return ((double)offset)/(frequency_channels_(bitsPerSample/8));
Why do could not be?
I would appreciate your favor.
Metadata
Metadata
Assignees
Labels
No labels