We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello.
OpenAL can not set currentTime in milliseconds. Because AL_SEC_OFFSET is set in currentTime () and setCurrentTime () in EJAudioSourceOpenAL.m.
- (float)currentTime { float time; alGetSourcef( sourceId, AL_SEC_OFFSET, &time ); return time/44100; } - (void)setCurrentTime:(float)time { alSourcef( sourceId, AL_SEC_OFFSET, time ); }
I want to set currentTime in milliseconds. So, I'd like to change the code as follows.
- (float)currentTime { float time; alGetSourcef( sourceId, AL_SAMPLE_OFFSET, &time ); return time/44100; } - (void)setCurrentTime:(float)time { alSourcef( sourceId, AL_SAMPLE_OFFSET, time*44100 ); }
What do you think of the code above? Please comment it.
BTW, since I am not familiar with OpenAL, I do not know how to obtain sampling rate or monaural / stereo from the current context. sorry.
Thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello.
OpenAL can not set currentTime in milliseconds. Because AL_SEC_OFFSET is set in currentTime () and setCurrentTime () in EJAudioSourceOpenAL.m.
I want to set currentTime in milliseconds. So, I'd like to change the code as follows.
What do you think of the code above? Please comment it.
BTW, since I am not familiar with OpenAL, I do not know how to obtain sampling rate or monaural / stereo from the current context. sorry.
Thanks.
The text was updated successfully, but these errors were encountered: