Mercurial > sdl-ios-xcode
comparison src/audio/nds/SDL_ndsaudio.h @ 2689:e065c9f6a393 gsoc2008_nds
Some audio work, setting default frequency, volume, etc. and calling a generic playback function that uses them.
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Fri, 15 Aug 2008 10:44:31 +0000 |
parents | 4135aa9c5645 |
children | e1da92da346c |
comparison
equal
deleted
inserted
replaced
2688:71c56e900f8b | 2689:e065c9f6a393 |
---|---|
23 | 23 |
24 #ifndef _SDL_ndsaudio_h | 24 #ifndef _SDL_ndsaudio_h |
25 #define _SDL_ndsaudio_h | 25 #define _SDL_ndsaudio_h |
26 | 26 |
27 #include "../SDL_sysaudio.h" | 27 #include "../SDL_sysaudio.h" |
28 #include <nds/arm9/sound.h> | |
28 | 29 |
29 /* Hidden "this" pointer for the audio functions */ | 30 /* Hidden "this" pointer for the audio functions */ |
30 #define _THIS SDL_AudioDevice *this | 31 #define _THIS SDL_AudioDevice *this |
31 | 32 |
32 struct SDL_PrivateAudioData | 33 struct SDL_PrivateAudioData |
33 { | 34 { |
35 TransferSoundData* sound; | |
34 /* The file descriptor for the audio device */ | 36 /* The file descriptor for the audio device */ |
35 Uint8 *mixbuf; | 37 Uint8 *mixbuf; |
36 Uint32 mixlen; | 38 Uint32 mixlen; |
37 Uint32 write_delay; | 39 Uint32 write_delay; |
38 Uint32 initial_calls; | 40 Uint32 initial_calls; |