public void CloseSound(SoundDesc soundDesc) { // Debug.WriteLine("Close sound: {0}", soundDesc.SoundId); Debug.Assert(CheckForProperHandle(soundDesc)); // if (soundDesc.resPtr != null) // { // bool found = false; // for (int l = 0; l < IMuseDigital.MAX_IMUSE_SOUNDS; l++) // { // if ((_sounds[l].soundId == soundDesc.soundId) && (_sounds[l] != soundDesc)) // found = true; // } // TODO: unlock // if (!found) // _vm._res.unlock(rtSound, soundDesc.soundId); // } soundDesc.Clear(); }
public void CloseSound(SoundDesc soundDesc) { // Debug.WriteLine("Close sound: {0}", soundDesc.SoundId); Debug.Assert(CheckForProperHandle(soundDesc)); // if (soundDesc.resPtr != null) // { // bool found = false; // for (int l = 0; l < IMuseDigital.MAX_IMUSE_SOUNDS; l++) // { // if ((_sounds[l].soundId == soundDesc.soundId) && (_sounds[l] != soundDesc)) // found = true; // } // TODO: unlock // if (!found) // _vm._res.unlock(rtSound, soundDesc.soundId); // } soundDesc.Clear(); }