mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 22:15:32 +00:00
Update some comments
It wasn't actually a bug in OSX like the comment said, but intended behavior.
This commit is contained in:
parent
4e3ae85c11
commit
c2b3ca9638
1 changed files with 4 additions and 6 deletions
|
@ -1217,9 +1217,8 @@ void OpenAL_Output::finishSound(Sound *sound)
|
||||||
ALuint source = GET_PTRID(sound->mHandle);
|
ALuint source = GET_PTRID(sound->mHandle);
|
||||||
sound->mHandle = 0;
|
sound->mHandle = 0;
|
||||||
|
|
||||||
// Rewind the stream instead of stopping it, this puts the source into an AL_INITIAL state,
|
// Rewind the stream to put the source back into an AL_INITIAL state, for
|
||||||
// which works around a bug in the MacOS OpenAL implementation which would otherwise think
|
// the next time it's used.
|
||||||
// the initial queue already played when it hasn't.
|
|
||||||
alSourceRewind(source);
|
alSourceRewind(source);
|
||||||
alSourcei(source, AL_BUFFER, 0);
|
alSourcei(source, AL_BUFFER, 0);
|
||||||
getALError();
|
getALError();
|
||||||
|
@ -1322,9 +1321,8 @@ void OpenAL_Output::finishStream(Stream *sound)
|
||||||
sound->mHandle = 0;
|
sound->mHandle = 0;
|
||||||
mStreamThread->remove(stream);
|
mStreamThread->remove(stream);
|
||||||
|
|
||||||
// Rewind the stream instead of stopping it, this puts the source into an AL_INITIAL state,
|
// Rewind the stream to put the source back into an AL_INITIAL state, for
|
||||||
// which works around a bug in the MacOS OpenAL implementation which would otherwise think
|
// the next time it's used.
|
||||||
// the initial queue already played when it hasn't.
|
|
||||||
alSourceRewind(source);
|
alSourceRewind(source);
|
||||||
alSourcei(source, AL_BUFFER, 0);
|
alSourcei(source, AL_BUFFER, 0);
|
||||||
getALError();
|
getALError();
|
||||||
|
|
Loading…
Reference in a new issue