Handle fmodex internal channel release by registering channel callbacks. Harden channel<->source associations. Assign console output for audio system "AudioEngine" and "AudioImpl" tags. Added base LLAudioChannel::cleanup() vfunc to handle non-impl-related variable cleanup. Killed some redundant code.
This commit is contained in:
@@ -576,6 +576,7 @@ void LLAudioChannelFMOD::updateLoop()
|
||||
|
||||
void LLAudioChannelFMOD::cleanup()
|
||||
{
|
||||
LLAudioChannel::cleanup();
|
||||
if (!mChannelID)
|
||||
{
|
||||
//llinfos << "Aborting cleanup with no channelID." << llendl;
|
||||
@@ -588,7 +589,6 @@ void LLAudioChannelFMOD::cleanup()
|
||||
LL_DEBUGS("FMOD") << "LLAudioChannelFMOD::cleanup error: " << FMOD_ErrorString(FSOUND_GetError()) << llendl;
|
||||
}
|
||||
|
||||
mCurrentBufferp = NULL;
|
||||
mChannelID = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user