comparison src/audio/arts/SDL_artsaudio.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents d910939febfa
children 5f6550e5184f 9dc81c6acaf5
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
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 video functions */
32 #define _THIS SDL_AudioDevice *this 32 #define _THIS SDL_AudioDevice *this
33 33
34 struct SDL_PrivateAudioData { 34 struct SDL_PrivateAudioData
35 /* The stream descriptor for the audio device */ 35 {
36 arts_stream_t stream; 36 /* The stream descriptor for the audio device */
37 arts_stream_t stream;
37 38
38 /* The parent process id, to detect when application quits */ 39 /* The parent process id, to detect when application quits */
39 pid_t parent; 40 pid_t parent;
40 41
41 /* Raw mixing buffer */ 42 /* Raw mixing buffer */
42 Uint8 *mixbuf; 43 Uint8 *mixbuf;
43 int mixlen; 44 int mixlen;
44 45
45 /* Support for audio timing using a timer, in addition to select() */ 46 /* Support for audio timing using a timer, in addition to select() */
46 float frame_ticks; 47 float frame_ticks;
47 float next_frame; 48 float next_frame;
48 }; 49 };
49 #define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */ 50 #define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */
50 51
51 /* Old variable names */ 52 /* Old variable names */
52 #define stream (this->hidden->stream) 53 #define stream (this->hidden->stream)
53 #define parent (this->hidden->parent) 54 #define parent (this->hidden->parent)
54 #define mixbuf (this->hidden->mixbuf) 55 #define mixbuf (this->hidden->mixbuf)
55 #define mixlen (this->hidden->mixlen) 56 #define mixlen (this->hidden->mixlen)
56 #define frame_ticks (this->hidden->frame_ticks) 57 #define frame_ticks (this->hidden->frame_ticks)
57 #define next_frame (this->hidden->next_frame) 58 #define next_frame (this->hidden->next_frame)
58 59
59 #endif /* _SDL_artscaudio_h */ 60 #endif /* _SDL_artscaudio_h */
60 61 /* vi: set ts=4 sw=4 expandtab: */