1 |
|
/* |
2 |
|
* audio_oss_esd.cpp - Audio support, implementation for OSS and ESD (Linux and FreeBSD) |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2001 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2002 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
231 |
|
// Sound buffer size = 4096 frames |
232 |
|
audio_frames_per_block = 4096; |
233 |
|
return true; |
234 |
+ |
#else |
235 |
+ |
// ESD is not enabled, shut up the compiler |
236 |
+ |
return false; |
237 |
|
#endif |
238 |
|
} |
239 |
|
|
341 |
|
|
342 |
|
void AudioExit(void) |
343 |
|
{ |
344 |
+ |
// Close audio device |
345 |
+ |
close_audio(); |
346 |
+ |
|
347 |
+ |
// Delete semaphore |
348 |
|
if (sem_inited) { |
349 |
|
sem_destroy(&audio_irq_done_sem); |
350 |
|
sem_inited = false; |