comparison src/audio/sun/SDL_sunaudio.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents d910939febfa
children 3b4ce57c6215
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
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: */