Adding a safety check before the stopHandle call().. May or may not be necessary.

svn-id: r22698
This commit is contained in:
Oystein Eftevaag 2006-05-28 04:53:22 +00:00
parent 77910d4163
commit 8161aa8adb

View File

@ -82,7 +82,8 @@ void Sound::voicePlay(const char *file) {
}
void Sound::voiceStop() {
_mixer->stopHandle(_vocHandle);
if (_mixer->isSoundHandleActive(_vocHandle))
_mixer->stopHandle(_vocHandle);
}
bool Sound::voiceIsPlaying() {