Mercurial > sdl-ios-xcode
comparison src/audio/macrom/SDL_romaudio.h @ 323:b7e8038e40ae
The audio lock and unlock functions are now a part of the driver.
The MacOS audio locking has been implemented, courtesy of Ryan Gordon
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 30 Mar 2002 20:03:27 +0000 |
parents | f6ffac90895c |
children | b8d311d90021 |
comparison
equal
deleted
inserted
replaced
322:fd93a09655e3 | 323:b7e8038e40ae |
---|---|
28 #ifndef _SDL_romaudio_h | 28 #ifndef _SDL_romaudio_h |
29 #define _SDL_romaudio_h | 29 #define _SDL_romaudio_h |
30 | 30 |
31 #include "SDL_sysaudio.h" | 31 #include "SDL_sysaudio.h" |
32 | 32 |
33 /* This is Ryan's improved MacOS sound code, with locking support */ | |
34 #define USE_RYANS_SOUNDCODE | |
35 | |
33 /* Hidden "this" pointer for the video functions */ | 36 /* Hidden "this" pointer for the video functions */ |
34 #define _THIS SDL_AudioDevice *this | 37 #define _THIS SDL_AudioDevice *this |
35 | 38 |
36 struct SDL_PrivateAudioData { | 39 struct SDL_PrivateAudioData { |
37 /* Sound manager audio channel */ | 40 /* Sound manager audio channel */ |
38 SndChannelPtr channel; | 41 SndChannelPtr channel; |
39 #if ! TARGET_API_MAC_CARBON | 42 #if defined(TARGET_API_MAC_CARBON) || defined(USE_RYANS_SOUNDCODE) |
43 /* FIXME: Add Ryan's static data here */ | |
44 #else | |
40 /* Double buffering variables */ | 45 /* Double buffering variables */ |
41 SndDoubleBufferPtr audio_buf[2]; | 46 SndDoubleBufferPtr audio_buf[2]; |
42 #endif | 47 #endif |
43 }; | 48 }; |
44 | 49 |
45 /* Old variable names */ | 50 /* Old variable names */ |
46 #define channel (this->hidden->channel) | 51 #define channel (this->hidden->channel) |
47 #define audio_buf (this->hidden->audio_buf) | 52 #define audio_buf (this->hidden->audio_buf) |