Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated test app to init the sound system
  • Loading branch information
bieh committed Jul 27, 2010
1 parent 4766b87 commit dcc7155
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions android/testproject/jni/lesson05.c
Expand Up @@ -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 )
{
Expand Down
2 changes: 1 addition & 1 deletion include/SDL_config_android.h
Expand Up @@ -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

Expand Down

0 comments on commit dcc7155

Please sign in to comment.