From 98400327c3d2e497bba04f22dd096fcca4eeb255 Mon Sep 17 00:00:00 2001 From: Oystein Eftevaag Date: Thu, 26 Aug 2010 23:13:17 +0000 Subject: HUGO: Implemented basic MIDI support. svn-id: r52403 --- engines/hugo/util.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'engines/hugo/util.cpp') diff --git a/engines/hugo/util.cpp b/engines/hugo/util.cpp index da917a802e..fb3da9df88 100644 --- a/engines/hugo/util.cpp +++ b/engines/hugo/util.cpp @@ -114,12 +114,8 @@ void Utils::Warn(bool technote, const char *format, ...) { /* Arguments are same as printf */ /* technote TRUE if we are to refer user to technote file */ char buffer[WARNLEN]; - bool soundFl = _config.soundFl; va_list marker; - _config.soundFl = false; // Kill sound to allow beep sound - HugoEngine::get().sound().initSound(RESET); - va_start(marker, format); vsnprintf(buffer, WARNLEN, format, marker); va_end(marker); @@ -128,11 +124,6 @@ void Utils::Warn(bool technote, const char *format, ...) { //MessageBeep(MB_ICONEXCLAMATION); //MessageBox(hwnd, buffer, "HugoWin Warning", MB_OK | MB_ICONEXCLAMATION); warning("Hugo warning: %s", buffer); - - //sndPlaySound(NULL, 0); // Stop beep and restore sound - - _config.soundFl = soundFl; - HugoEngine::get().sound().initSound(RESET); } void Utils::Error(int error_type, const char *format, ...) { -- cgit v1.2.3