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.8 by cebix, 2001-07-05T21:24:45Z vs.
Revision 1.9 by cebix, 2001-07-11T19:26:14Z

# Line 142 | Line 142 | static bool open_dsp(void)
142                  silence_byte = 0x80;
143          } else {
144                  unsigned long sup_format;
145 <                ioctl(audio_fd, SNDCTL_DSP_GETFMTS, &format);
145 >                ioctl(audio_fd, SNDCTL_DSP_GETFMTS, &sup_format);
146                  if (sup_format & AFMT_S16_BE) {
147                          little_endian = false;
148                          format = AFMT_S16_BE;
# Line 284 | Line 284 | dev_opened:
284  
285   void AudioInit(void)
286   {
287        char str[256];
288
287          // Init audio status (reasonable defaults) and feature flags
288          AudioStatus.sample_rate = 44100 << 16;
289          AudioStatus.sample_size = 16;
# Line 377 | Line 375 | void audio_exit_stream()
375   *  Streaming function
376   */
377  
380 static uint32 apple_stream_info;        // Mac address of SoundComponentData struct describing next buffer
381
378   static void *stream_func(void *arg)
379   {
380          int16 *silent_buffer = new int16[sound_buffer_size / 2];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines