src/SDL_android.h
changeset 5000 6a10693e66c3
parent 4998 a514bfe6952a
equal deleted inserted replaced
4999:55fccf89b340 5000:6a10693e66c3
    27 extern "C" {
    27 extern "C" {
    28 /* *INDENT-ON* */
    28 /* *INDENT-ON* */
    29 #endif
    29 #endif
    30 
    30 
    31 /* Interface from the SDL library into the Android Java activity */
    31 /* Interface from the SDL library into the Android Java activity */
    32 void Android_JNI_CreateContext();
    32 extern void Android_JNI_CreateContext();
    33 void Android_JNI_SwapWindow();
    33 extern void Android_JNI_SwapWindow();
    34 void Android_JNI_SetActivityTitle(const char *title);
    34 extern void Android_JNI_SetActivityTitle(const char *title);
       
    35 extern void Android_JNI_GetAccelerometerValues(float values[3]);
    35 
    36 
    36 // Audio support
    37 // Audio support
    37 int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
    38 extern int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
    38 void* Android_JNI_GetAudioBuffer();
    39 extern void* Android_JNI_GetAudioBuffer();
    39 void Android_JNI_WriteAudioBuffer();
    40 extern void Android_JNI_WriteAudioBuffer();
    40 void Android_JNI_CloseAudioDevice();
    41 extern void Android_JNI_CloseAudioDevice();
    41 
    42 
    42 /* Ends C function definitions when using C++ */
    43 /* Ends C function definitions when using C++ */
    43 #ifdef __cplusplus
    44 #ifdef __cplusplus
    44 /* *INDENT-OFF* */
    45 /* *INDENT-OFF* */
    45 }
    46 }