21 #include "../../SDL_internal.h"
23 #if SDL_AUDIO_DRIVER_ANDROID
29 #include "../SDL_audio_c.h"
32 #include "../../core/android/SDL_android.h"
34 #include <android/log.h>
40 ANDROIDAUDIO_OpenDevice(
_THIS,
void *
handle,
const char *devname,
int iscapture)
54 if (this->hidden ==
NULL) {
59 while (test_format != 0) {
69 if (test_format == 0) {
84 ANDROIDAUDIO_PlayDevice(
_THIS)
90 ANDROIDAUDIO_GetDeviceBuf(
_THIS)
96 ANDROIDAUDIO_CaptureFromDevice(
_THIS,
void *
buffer,
int buflen)
102 ANDROIDAUDIO_FlushCapture(
_THIS)
108 ANDROIDAUDIO_CloseDevice(
_THIS)
114 if (this->iscapture) {
116 captureDevice =
NULL;
144 "android",
"SDL Android audio driver", ANDROIDAUDIO_Init, 0