// 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;
}
Exemplo n.º 2
0
void Sound::Shutdown()
{
	ShutdownWaveFile(&m_secondaryBuffer1);
	ShutdownDirectSound();

	return;
}
Exemplo n.º 3
0
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();
}
Exemplo n.º 4
0
void SoundClass::Shutdown()
{
	// Release the secondary buffer.
	ShutdownWaveFile(&m_secondaryBuffer1, &m_secondary3DBuffer1);

	// Shutdown the Direct Sound API.
	ShutdownDirectSound();

	return;
}