comparison src/audio/macrom/SDL_romaudio.h @ 3782:8225ef1f4dee SDL-ryan-multiple-audio-device

Removed the pre-Carbon Mac OS 9 audio code, so Mac OS 8 is officially unsupported now. :) The "USE_RYANS_SOUNDCODE" portion, which is what remains, has been the active codepath for years now without complaint, and was used in several shipping OS X titles before the CoreAudio support obsoleted it, so it's a good fallback to keep around for testing if nothing else. This code should still work on both OS 9, and PowerPC/Intel Mac OS X.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 01 Oct 2006 05:19:16 +0000
parents c121d94672cb
children 37c9c4590689
comparison
equal deleted inserted replaced
3781:3a64f57eb3cf 3782:8225ef1f4dee
24 #ifndef _SDL_romaudio_h 24 #ifndef _SDL_romaudio_h
25 #define _SDL_romaudio_h 25 #define _SDL_romaudio_h
26 26
27 #include "../SDL_sysaudio.h" 27 #include "../SDL_sysaudio.h"
28 28
29 /* This is Ryan's improved MacOS sound code, with locking support */
30 #define USE_RYANS_SOUNDCODE
31
32 /* Hidden "this" pointer for the video functions */ 29 /* Hidden "this" pointer for the video functions */
33 #define _THIS SDL_AudioDevice *this 30 #define _THIS SDL_AudioDevice *this
34 31
35 struct SDL_PrivateAudioData 32 struct SDL_PrivateAudioData
36 { 33 {
37 /* Sound manager audio channel */ 34 /* Sound manager audio channel */
38 SndChannelPtr channel; 35 SndChannelPtr channel;
39 #if defined(TARGET_API_MAC_CARBON) || defined(USE_RYANS_SOUNDCODE)
40 /* FIXME: Add Ryan's static data here */
41 #else
42 /* Double buffering variables */
43 SndDoubleBufferPtr audio_buf[2];
44 #endif
45 }; 36 };
46 37
47 /* Old variable names */ 38 /* Old variable names */
48 #define channel (this->hidden->channel) 39 #define channel (this->hidden->channel)
49 #define audio_buf (this->hidden->audio_buf) 40 #define audio_buf (this->hidden->audio_buf)