Ejemplo n.º 1
0
bool
SoundCardD3D::Pause()
{
	AutoThreadSync a(sync);

	ListIter<Sound> iter = sounds;
	while (++iter) {
		Sound* s = iter.value();

		if ((s->GetFlags() & Sound::INTERFACE) == 0)
		s->Pause();
	}

	return true;
}
Ejemplo n.º 2
0
bool
SoundCardD3D::StopSoundEffects()
{
	AutoThreadSync a(sync);

	DWORD ok_sounds = (Sound::INTERFACE | Sound::OGGVORBIS | Sound::RESOURCE);

	ListIter<Sound> iter = sounds;
	while (++iter) {
		Sound* s = iter.value();

		if ((s->GetFlags() & ok_sounds) == 0)
		s->Stop();
	}

	return true;
}