comparison src/audio/disk/SDL_diskaudio.h @ 1465:8dfa9a6d69a5

Updated WinCE support by Dmitry (with some tweaks) Converted the disk audio driver to SDL_RWops for portability
author Sam Lantinga <slouken@libsdl.org>
date Sat, 04 Mar 2006 08:24:35 +0000
parents d910939febfa
children 782fd950bd46 a1b03ba2fcd0
comparison
equal deleted inserted replaced
1464:af30090c0330 1465:8dfa9a6d69a5
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #ifndef _SDL_diskaudio_h 24 #ifndef _SDL_diskaudio_h
25 #define _SDL_diskaudio_h 25 #define _SDL_diskaudio_h
26 26
27 #include "SDL_rwops.h"
27 #include "../SDL_sysaudio.h" 28 #include "../SDL_sysaudio.h"
28 29
29 /* Hidden "this" pointer for the video functions */ 30 /* Hidden "this" pointer for the video functions */
30 #define _THIS SDL_AudioDevice *this 31 #define _THIS SDL_AudioDevice *this
31 32
32 struct SDL_PrivateAudioData { 33 struct SDL_PrivateAudioData {
33 /* The file descriptor for the audio device */ 34 /* The file descriptor for the audio device */
34 int audio_fd; 35 SDL_RWops *output;
35 Uint8 *mixbuf; 36 Uint8 *mixbuf;
36 Uint32 mixlen; 37 Uint32 mixlen;
37 Uint32 write_delay; 38 Uint32 write_delay;
38 }; 39 };
39 40
40 #endif /* _SDL_diskaudio_h */ 41 #endif /* _SDL_diskaudio_h */