Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/audio/android/SDL_androidaudio.c Wed Jan 12 16:35:03 2011 -0800 +++ b/src/audio/android/SDL_androidaudio.c Wed Jan 12 17:53:06 2011 -0800 @@ -28,8 +28,7 @@ #include "SDL_audio.h" #include "../SDL_audio_c.h" #include "SDL_androidaudio.h" - -extern void Android_UpdateAudioBuffer(unsigned char *buf, int len); +#include "../../SDL_android.h" #include <android/log.h> @@ -94,7 +93,7 @@ // sound->len = this->hidden->mixlen; /* size of raw data pointed to above */ - Android_UpdateAudioBuffer(this->hidden->mixbuf, this->hidden->mixlen); + Android_JNI_UpdateAudioBuffer(this->hidden->mixbuf, this->hidden->mixlen); return this->hidden->mixbuf; /* is this right? */ }