diff --git a/android/phoenix/src/org/retroarch/browser/RetroArch.java b/android/phoenix/src/org/retroarch/browser/RetroArch.java index 7a47df00d0..2d9e2bcce9 100644 --- a/android/phoenix/src/org/retroarch/browser/RetroArch.java +++ b/android/phoenix/src/org/retroarch/browser/RetroArch.java @@ -354,6 +354,7 @@ public class RetroArch extends Activity implements private void updateConfigFile() { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext()); config.setBoolean("audio_rate_control", prefs.getBoolean("audio_rate_control", true)); + config.setInt("audio_out_rate", 44100); // Much better than 48000 on Nexus 10, need to investigate. Could fix most audio issues on Android. config.setBoolean("audio_enable", prefs.getBoolean("audio_enable", true)); config.setBoolean("video_smooth", prefs.getBoolean("video_smooth", true)); config.setBoolean("video_allow_rotate", prefs.getBoolean("video_allow_rotate", true)); diff --git a/config.def.h b/config.def.h index da7a3228c1..0d647ad290 100644 --- a/config.def.h +++ b/config.def.h @@ -313,7 +313,7 @@ static const bool allow_rotate = true; static const bool audio_enable = true; // Output samplerate -static const unsigned out_rate = 48000; +static const unsigned out_rate = 48000; // Audio device (e.g. hw:0,0 or /dev/audio). If NULL, will use defaults. static const char *audio_device = NULL;