Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
daaa0b04
Commit
daaa0b04
authored
Jul 27, 2010
by
Paul Hunkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated test app to init the sound system
parent
56e126ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
lesson05.c
android/testproject/jni/lesson05.c
+9
-0
SDL_config_android.h
include/SDL_config_android.h
+1
-1
No files found.
android/testproject/jni/lesson05.c
View file @
daaa0b04
...
...
@@ -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
)
{
...
...
include/SDL_config_android.h
View file @
daaa0b04
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment