ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/audio_oss_esd.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/audio_oss_esd.cpp (file contents):
Revision 1.3 by cebix, 1999-11-03T10:56:22Z vs.
Revision 1.5 by cebix, 2000-07-13T13:47:06Z

# Line 1 | Line 1
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
# Line 41 | Line 41
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  
# Line 138 | Line 138 | bool audio_init_dsp(void)
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
# Line 195 | Line 195 | void AudioInit(void)
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines