Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Updated test app to init the sound system
- Loading branch information
Showing
with
10 additions
and
1 deletion.
-
+9
−0
android/testproject/jni/lesson05.c
-
+1
−1
include/SDL_config_android.h
|
@@ -425,6 +425,15 @@ int SDL_main( int argc, char **argv ) |
|
|
/* resize the initial window */ |
|
|
resizeWindow( SCREEN_WIDTH, SCREEN_HEIGHT ); |
|
|
|
|
|
/* Load the SDL library */ |
|
|
if (SDL_Init(SDL_INIT_AUDIO) < 0) { |
|
|
__android_log_print(ANDROID_LOG_INFO, "SDL","Couldn't initialize SDL Audio: %s\n", SDL_GetError()); |
|
|
return (1); |
|
|
}else{ |
|
|
__android_log_print(ANDROID_LOG_INFO, "SDL","Init audio ok\n"); |
|
|
} |
|
|
|
|
|
|
|
|
/* wait for events */ |
|
|
while ( !done ) |
|
|
{ |
|
|
|
@@ -47,7 +47,7 @@ typedef unsigned int uint32_t; |
|
|
typedef unsigned int size_t; |
|
|
//typedef unsigned long uintptr_t; |
|
|
|
|
|
#define SDL_AUDIO_DRIVER_DUMMY 1 |
|
|
#define SDL_AUDIO_DRIVER_ANDROID 1 |
|
|
|
|
|
#define SDL_CDROM_DISABLED 1 |
|
|
|
|
|