diff options
Diffstat (limited to 'audio/maplay/files/patch-ac')
-rw-r--r-- | audio/maplay/files/patch-ac | 65 |
1 files changed, 63 insertions, 2 deletions
diff --git a/audio/maplay/files/patch-ac b/audio/maplay/files/patch-ac index 3a6e29c92ce1..73118abbe703 100644 --- a/audio/maplay/files/patch-ac +++ b/audio/maplay/files/patch-ac @@ -1,5 +1,49 @@ -*** obuffer.cc.orig Thu Jun 23 05:14:36 1994 ---- obuffer.cc Tue Feb 14 04:17:17 1995 +*** obuffer.cc.orig Thu Jun 23 21:14:36 1994 +--- obuffer.cc Thu Dec 9 05:10:51 1999 +*************** +*** 217,226 **** + int SparcObuffer::audio_fd = -1; + + #ifdef ULAW +! SparcObuffer::SparcObuffer (Header *header, bool use_speaker, bool use_headphone, bool use_line_out) + #else + SparcObuffer::SparcObuffer (uint32 number_of_channels, Header *header, +! bool use_speaker, bool use_headphone, bool use_line_out) + #endif + { + #ifndef ULAW +--- 217,226 ---- + int SparcObuffer::audio_fd = -1; + + #ifdef ULAW +! SparcObuffer::SparcObuffer (Header *header, boolean use_speaker, boolean use_headphone, boolean use_line_out) + #else + SparcObuffer::SparcObuffer (uint32 number_of_channels, Header *header, +! boolean use_speaker, boolean use_headphone, boolean use_line_out) + #endif + { + #ifndef ULAW +*************** +*** 406,414 **** + + + #ifdef ULAW +! bool SparcObuffer::class_suitable (uint32 number_of_channels, bool force_amd) + #else +! bool SparcObuffer::class_suitable (void) + #endif + { + #ifdef ULAW +--- 406,414 ---- + + + #ifdef ULAW +! boolean SparcObuffer::class_suitable (uint32 number_of_channels, boolean force_amd) + #else +! boolean SparcObuffer::class_suitable (void) + #endif + { + #ifdef ULAW *************** *** 537,542 **** --- 537,543 ---- @@ -20,3 +64,20 @@ return fd; } +*************** +*** 629,635 **** + } + + +! bool LinuxObuffer::class_suitable (uint32 number_of_channels) + { + // open the dsp audio device: + audio_fd = open_audio_device (); +--- 631,637 ---- + } + + +! boolean LinuxObuffer::class_suitable (uint32 number_of_channels) + { + // open the dsp audio device: + audio_fd = open_audio_device (); |