1 |
|
/* |
2 |
|
* audio_oss_esd.cpp - Audio support, implementation for OSS and ESD (Linux and FreeBSD) |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2000 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 |
41 |
|
#include "audio.h" |
42 |
|
#include "audio_defs.h" |
43 |
|
|
44 |
< |
#if ENABLE_ESD |
44 |
> |
#ifdef ENABLE_ESD |
45 |
|
#include <esd.h> |
46 |
|
#endif |
47 |
|
|
138 |
|
// Init using ESD, returns false on error |
139 |
|
bool audio_init_esd(void) |
140 |
|
{ |
141 |
< |
#if ENABLE_ESD |
141 |
> |
#ifdef ENABLE_ESD |
142 |
|
printf("Using ESD audio output\n"); |
143 |
|
|
144 |
|
// ESD audio format |
195 |
|
// Try to open /dev/dsp |
196 |
|
audio_fd = open(DSP_NAME, O_WRONLY); |
197 |
|
if (audio_fd < 0) { |
198 |
< |
#if ENABLE_ESD |
198 |
> |
#ifdef ENABLE_ESD |
199 |
|
if (!audio_init_esd()) |
200 |
|
return; |
201 |
|
#else |