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

Comparing BasiliskII/src/Unix/Solaris/audio_solaris.cpp (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.4 by cebix, 2000-04-10T18:53:19Z

# Line 3 | Line 3
3   *
4   *  Adapted from Frodo's Solaris sound routines by Marc Chabanas
5   *
6 < *  Basilisk II (C) 1997-1999 Christian Bauer
6 > *  Basilisk II (C) 1997-2000 Christian Bauer
7   *
8   *  This program is free software; you can redistribute it and/or modify
9   *  it under the terms of the GNU General Public License as published by
# Line 210 | Line 210 | static void *stream_func(void *arg)
210                                          write(fd, Mac2HostAddr(ReadMacInt32(apple_stream_info + scd_buffer)), sound_buffer_size);
211                                  else {
212                                          // Last buffer
213 <                                        memcpy(last_buffer, Mac2HostAddr(ReadMacInt32(apple_stream_info + scd_buffer)), work_size);
213 >                                        Mac2Host_memcpy(last_buffer, ReadMacInt32(apple_stream_info + scd_buffer), work_size);
214                                          memset((uint8 *)last_buffer + work_size, 0, sound_buffer_size - work_size);
215                                          write(fd, last_buffer, sound_buffer_size);
216                                  }
# Line 296 | Line 296 | uint32 audio_get_main_volume(void)
296          return 0x01000100;
297   }
298  
299 < bool audio_get_dac_mute(void)
299 > bool audio_get_speaker_mute(void)
300   {
301          return false;
302   }
303  
304 < uint32 audio_get_dac_volume(void)
304 > uint32 audio_get_speaker_volume(void)
305   {
306          return 0x01000100;
307   }
# Line 314 | Line 314 | void audio_set_main_volume(uint32 vol)
314   {
315   }
316  
317 < void audio_set_dac_mute(bool mute)
317 > void audio_set_speaker_mute(bool mute)
318   {
319   }
320  
321 < void audio_set_dac_volume(uint32 vol)
321 > void audio_set_speaker_volume(uint32 vol)
322   {
323   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines