comparison src/audio/sun/SDL_sunaudio.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 3b4ce57c6215
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
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 video functions */
30 #define _THIS SDL_AudioDevice *this 30 #define _THIS SDL_AudioDevice *this
31 31
32 struct SDL_PrivateAudioData { 32 struct SDL_PrivateAudioData
33 /* The file descriptor for the audio device */ 33 {
34 int audio_fd; 34 /* The file descriptor for the audio device */
35 int audio_fd;
35 36
36 Uint16 audio_fmt; /* The app audio format */ 37 Uint16 audio_fmt; /* The app audio format */
37 Uint8 *mixbuf; /* The app mixing buffer */ 38 Uint8 *mixbuf; /* The app mixing buffer */
38 int ulaw_only; /* Flag -- does hardware only output U-law? */ 39 int ulaw_only; /* Flag -- does hardware only output U-law? */
39 Uint8 *ulaw_buf; /* The U-law mixing buffer */ 40 Uint8 *ulaw_buf; /* The U-law mixing buffer */
40 Sint32 written; /* The number of samples written */ 41 Sint32 written; /* The number of samples written */
41 int fragsize; /* The audio fragment size in samples */ 42 int fragsize; /* The audio fragment size in samples */
42 int frequency; /* The audio frequency in KHz */ 43 int frequency; /* The audio frequency in KHz */
43 }; 44 };
44 45
45 /* Old variable names */ 46 /* Old variable names */
46 #define audio_fd (this->hidden->audio_fd) 47 #define audio_fd (this->hidden->audio_fd)
47 #define audio_fmt (this->hidden->audio_fmt) 48 #define audio_fmt (this->hidden->audio_fmt)
51 #define written (this->hidden->written) 52 #define written (this->hidden->written)
52 #define fragsize (this->hidden->fragsize) 53 #define fragsize (this->hidden->fragsize)
53 #define frequency (this->hidden->frequency) 54 #define frequency (this->hidden->frequency)
54 55
55 #endif /* _SDL_lowaudio_h */ 56 #endif /* _SDL_lowaudio_h */
57 /* vi: set ts=4 sw=4 expandtab: */