Mercurial > sdl-ios-xcode
comparison src/audio/dsp/SDL_dspaudio.h @ 3795:589bc3d060cd SDL-ryan-multiple-audio-device
More 1.3 audio work...moved dsp and dma drivers over to new model. Untested!
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 04 Oct 2006 06:00:10 +0000 |
parents | c121d94672cb |
children | 9dc81c6acaf5 |
comparison
equal
deleted
inserted
replaced
3794:db24e43972ac | 3795:589bc3d060cd |
---|---|
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 */ |
35 int audio_fd; | 35 int audio_fd; |
36 | 36 |
37 /* The parent process id, to detect when application quits */ | |
38 pid_t parent; | |
39 | |
40 /* Raw mixing buffer */ | 37 /* Raw mixing buffer */ |
41 Uint8 *mixbuf; | 38 Uint8 *mixbuf; |
42 int mixlen; | 39 int mixlen; |
43 }; | 40 }; |
44 #define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */ | 41 #define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */ |
45 | 42 |
46 /* Old variable names */ | |
47 #define audio_fd (this->hidden->audio_fd) | |
48 #define parent (this->hidden->parent) | |
49 #define mixbuf (this->hidden->mixbuf) | |
50 #define mixlen (this->hidden->mixlen) | |
51 #define frame_ticks (this->hidden->frame_ticks) | |
52 #define next_frame (this->hidden->next_frame) | |
53 | |
54 #endif /* _SDL_dspaudio_h */ | 43 #endif /* _SDL_dspaudio_h */ |
55 /* vi: set ts=4 sw=4 expandtab: */ | 44 /* vi: set ts=4 sw=4 expandtab: */ |