comparison src/audio/android/SDL_androidaudio.c @ 4989:58b6bb4a45e9

More Android cleanup: * Formalized the interface with Java methods in SDL_android.h * We don't need the feature system, at least right now * Fixed waiting for the SDLMain thread
author Sam Lantinga <slouken@libsdl.org>
date Wed, 12 Jan 2011 17:53:06 -0800
parents d86332c0fb9b
children 9f9bea41e88f
comparison
equal deleted inserted replaced
4988:f9af88a9c823 4989:58b6bb4a45e9
26 /* Output audio to Android */ 26 /* Output audio to Android */
27 27
28 #include "SDL_audio.h" 28 #include "SDL_audio.h"
29 #include "../SDL_audio_c.h" 29 #include "../SDL_audio_c.h"
30 #include "SDL_androidaudio.h" 30 #include "SDL_androidaudio.h"
31 31 #include "../../SDL_android.h"
32 extern void Android_UpdateAudioBuffer(unsigned char *buf, int len);
33 32
34 #include <android/log.h> 33 #include <android/log.h>
35 34
36 static int 35 static int
37 AndroidAUD_OpenDevice(_THIS, const char *devname, int iscapture) 36 AndroidAUD_OpenDevice(_THIS, const char *devname, int iscapture)
92 91
93 // sound->data = this->hidden->mixbuf;/* pointer to raw audio data */ 92 // sound->data = this->hidden->mixbuf;/* pointer to raw audio data */
94 // sound->len = this->hidden->mixlen; /* size of raw data pointed to above */ 93 // sound->len = this->hidden->mixlen; /* size of raw data pointed to above */
95 94
96 95
97 Android_UpdateAudioBuffer(this->hidden->mixbuf, this->hidden->mixlen); 96 Android_JNI_UpdateAudioBuffer(this->hidden->mixbuf, this->hidden->mixlen);
98 97
99 return this->hidden->mixbuf; /* is this right? */ 98 return this->hidden->mixbuf; /* is this right? */
100 } 99 }
101 100
102 static void 101 static void