What is this? Where am I? Oh god. (Fix mistake in openal audioimpl)

This commit is contained in:
Shyotl
2013-10-18 02:27:09 -05:00
parent e2954fdbfd
commit addd687bf8

View File

@@ -189,6 +189,7 @@ void LLAudioChannelOpenAL::cleanup()
LLAudioChannel::cleanup();
alSourceStop(mALSource);
alSourcei(mALSource, AL_BUFFER, AL_NONE);
mLastSamplePos = 0;
}
void LLAudioChannelOpenAL::play()
@@ -338,7 +339,6 @@ void LLAudioBufferOpenAL::cleanup()
LL_WARNS("OpenAL") << "Error: " << alutGetErrorString( error ) << " when cleaning up a buffer" << LL_ENDL;
}
mALBuffer = AL_NONE;
mLastSamplePos = 0;
}
}