Skip to content

Commit d53f59d

Browse files
committed
Change SDL2 audio backend
1 parent 690dd18 commit d53f59d

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

pythonforandroid/recipes/sdl2/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class LibSDL2Recipe(BootstrapNDKRecipe):
1111
dir_name = 'SDL'
1212

1313
depends = ['sdl2_image', 'sdl2_mixer', 'sdl2_ttf']
14+
patches = ['change_audio_backend.patch']
1415

1516
def get_recipe_env(self, arch=None, with_flags_in_cc=True, with_python=True):
1617
env = super().get_recipe_env(
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c
2+
index 3137493..961b276 100644
3+
--- a/src/audio/SDL_audio.c
4+
+++ b/src/audio/SDL_audio.c
5+
@@ -93,7 +93,7 @@ static const AudioBootStrap *const bootstrap[] = {
6+
&openslES_bootstrap,
7+
#endif
8+
#if SDL_AUDIO_DRIVER_ANDROID
9+
- &ANDROIDAUDIO_bootstrap,
10+
+ //&ANDROIDAUDIO_bootstrap,
11+
#endif
12+
#if SDL_AUDIO_DRIVER_PSP
13+
&PSPAUDIO_bootstrap,

0 commit comments

Comments
 (0)