// the shutdown function releases the secondary buffer which held the .wav file audio data using the ShutdownWaveFile function. // once the other sounds are released we shutdown directsound buffer and interface. void SoundManager::Shutdown() { // release the 2ndary buffer ShutdownWaveFile(&mSecondBuffer); // release background music ShutdownWaveFile(&mBGMusic1Buffer); // shutdown the directsound api ShutdownDirectSound(); return; }
void Sound::Shutdown() { ShutdownWaveFile(&m_secondaryBuffer1); ShutdownDirectSound(); return; }
void SoundClass::Shutdown() { for (auto it = _waveBuffers.begin(); it != _waveBuffers.end(); ++it) { auto obj = (*it).second; if (obj) { ShutdownWaveFile(&obj); } } _waveBuffers.clear(); ShutdownWaveFile(&_secondaryBuffer1); ShutdownDirectSound(); }
void SoundClass::Shutdown() { // Release the secondary buffer. ShutdownWaveFile(&m_secondaryBuffer1, &m_secondary3DBuffer1); // Shutdown the Direct Sound API. ShutdownDirectSound(); return; }