Mercurial > sdl-ios-xcode
comparison src/audio/mme/SDL_mmeaudio.h @ 2049:5f6550e5184f
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 17 Oct 2006 09:15:21 +0000 |
parents | c121d94672cb |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2048:6067c7f9a672 | 2049:5f6550e5184f |
---|---|
21 */ | 21 */ |
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 | 23 |
24 /* Allow access to a raw mixing buffer */ | 24 /* Allow access to a raw mixing buffer */ |
25 | 25 |
26 #ifndef _SDL_lowaudio_h | 26 #ifndef _SDL_mmeaudio_h |
27 #define _SDL_lowaudio_h | 27 #define _SDL_mmeaudio_h |
28 | 28 |
29 #include "../SDL_sysaudio.h" | 29 #include "../SDL_sysaudio.h" |
30 | 30 |
31 /* Hidden "this" pointer for the video functions */ | 31 /* Hidden "this" pointer for the audio functions */ |
32 #define _THIS SDL_AudioDevice *this | 32 #define _THIS SDL_AudioDevice *this |
33 #define NUM_BUFFERS 2 | 33 #define NUM_BUFFERS 2 |
34 | 34 |
35 struct SharedMem | 35 struct SharedMem |
36 { | 36 { |
44 Uint8 *mixbuf; /* The raw allocated mixing buffer */ | 44 Uint8 *mixbuf; /* The raw allocated mixing buffer */ |
45 struct SharedMem *shm; | 45 struct SharedMem *shm; |
46 int next_buffer; | 46 int next_buffer; |
47 }; | 47 }; |
48 | 48 |
49 #define shm (this->hidden->shm) | 49 #endif /* _SDL_mmeaudio_h */ |
50 #define mixbuf (this->hidden->mixbuf) | 50 |
51 #define next_buffer (this->hidden->next_buffer) | |
52 /* Old variable names */ | |
53 #endif /* _SDL_lowaudio_h */ | |
54 /* vi: set ts=4 sw=4 expandtab: */ | 51 /* vi: set ts=4 sw=4 expandtab: */ |