src/core/android/SDL_android.h
changeset 12255 d2e5d4520677
parent 12242 df7260f149f2
child 12313 8451760ff7b3
equal deleted inserted replaced
12254:f1ac9de30ee1 12255:d2e5d4520677
    17   2. Altered source versions must be plainly marked as such, and must not be
    17   2. Altered source versions must be plainly marked as such, and must not be
    18      misrepresented as being the original software.
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
    21 #include "../../SDL_internal.h"
    21 #include "../../SDL_internal.h"
       
    22 #include "SDL_system.h"
    22 
    23 
    23 /* Set up for C function definitions, even when using C++ */
    24 /* Set up for C function definitions, even when using C++ */
    24 #ifdef __cplusplus
    25 #ifdef __cplusplus
    25 /* *INDENT-OFF* */
    26 /* *INDENT-OFF* */
    26 extern "C" {
    27 extern "C" {
    50 extern void* Android_JNI_GetAudioBuffer(void);
    51 extern void* Android_JNI_GetAudioBuffer(void);
    51 extern void Android_JNI_WriteAudioBuffer(void);
    52 extern void Android_JNI_WriteAudioBuffer(void);
    52 extern int Android_JNI_CaptureAudioBuffer(void *buffer, int buflen);
    53 extern int Android_JNI_CaptureAudioBuffer(void *buffer, int buflen);
    53 extern void Android_JNI_FlushCapturedAudio(void);
    54 extern void Android_JNI_FlushCapturedAudio(void);
    54 extern void Android_JNI_CloseAudioDevice(const int iscapture);
    55 extern void Android_JNI_CloseAudioDevice(const int iscapture);
       
    56 
       
    57 /* Detecting device type */
       
    58 extern SDL_bool Android_IsDeXMode();
       
    59 extern SDL_bool Android_IsChromebook();
    55 
    60 
    56 #include "SDL_rwops.h"
    61 #include "SDL_rwops.h"
    57 
    62 
    58 int Android_JNI_FileOpen(SDL_RWops* ctx, const char* fileName, const char* mode);
    63 int Android_JNI_FileOpen(SDL_RWops* ctx, const char* fileName, const char* mode);
    59 Sint64 Android_JNI_FileSize(SDL_RWops* ctx);
    64 Sint64 Android_JNI_FileSize(SDL_RWops* ctx);