--- BasiliskII/src/Unix/audio_oss_esd.cpp 2001/07/11 19:26:14 1.9 +++ BasiliskII/src/Unix/audio_oss_esd.cpp 2002/01/15 14:58:37 1.12 @@ -1,7 +1,7 @@ /* * audio_oss_esd.cpp - Audio support, implementation for OSS and ESD (Linux and FreeBSD) * - * Basilisk II (C) 1997-2001 Christian Bauer + * Basilisk II (C) 1997-2002 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -231,6 +231,9 @@ static bool open_esd(void) // Sound buffer size = 4096 frames audio_frames_per_block = 4096; return true; +#else + // ESD is not enabled, shut up the compiler + return false; #endif } @@ -338,6 +341,10 @@ static void close_audio(void) void AudioExit(void) { + // Close audio device + close_audio(); + + // Delete semaphore if (sem_inited) { sem_destroy(&audio_irq_done_sem); sem_inited = false;