Mercurial > sdl-ios-xcode
comparison src/audio/dma/SDL_dmaaudio.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 |
---|---|
19 Sam Lantinga | 19 Sam Lantinga |
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 */ | 21 */ |
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 | 23 |
24 #ifndef _SDL_dspaudio_h | 24 #ifndef _SDL_dmaaudio_h |
25 #define _SDL_dspaudio_h | 25 #define _SDL_dmaaudio_h |
26 | 26 |
27 #include "../SDL_sysaudio.h" | 27 #include "../SDL_sysaudio.h" |
28 | 28 |
29 /* Hidden "this" pointer for the video functions */ | 29 /* Hidden "this" pointer for the audio functions */ |
30 #define _THIS SDL_AudioDevice *this | 30 #define _THIS SDL_AudioDevice *this |
31 | 31 |
32 struct SDL_PrivateAudioData | 32 struct SDL_PrivateAudioData |
33 { | 33 { |
34 /* The file descriptor for the audio device */ | 34 /* The file descriptor for the audio device */ |
47 float next_frame; | 47 float next_frame; |
48 }; | 48 }; |
49 #define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */ | 49 #define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */ |
50 | 50 |
51 /* Old variable names */ | 51 /* Old variable names */ |
52 /* !!! FIXME: remove these. */ | |
52 #define audio_fd (this->hidden->audio_fd) | 53 #define audio_fd (this->hidden->audio_fd) |
53 #define parent (this->hidden->parent) | 54 #define parent (this->hidden->parent) |
54 #define dma_buf (this->hidden->dma_buf) | 55 #define dma_buf (this->hidden->dma_buf) |
55 #define dma_len (this->hidden->dma_len) | 56 #define dma_len (this->hidden->dma_len) |
56 #define num_buffers (this->hidden->num_buffers) | 57 #define num_buffers (this->hidden->num_buffers) |
57 #define frame_ticks (this->hidden->frame_ticks) | 58 #define frame_ticks (this->hidden->frame_ticks) |
58 #define next_frame (this->hidden->next_frame) | 59 #define next_frame (this->hidden->next_frame) |
59 | 60 |
60 #endif /* _SDL_dspaudio_h */ | 61 #endif /* _SDL_dmaaudio_h */ |
62 | |
61 /* vi: set ts=4 sw=4 expandtab: */ | 63 /* vi: set ts=4 sw=4 expandtab: */ |