Permalink
Browse files

audio: Fix default number of audio buffers

  • Loading branch information...
1 parent 0f70d25 commit a76e6a123002dacc8b097ef760d76e2ae556e971 @fzurita fzurita committed Mar 19, 2016
@@ -65,7 +65,7 @@
android:defaultValue="@string/audioSLESBufferSize_default"
android:entries="@array/audioSLESBufferSize_entries"
android:entryValues="@array/audioSLESBufferSize_values"
- android:key="audioSLESBufferSize"
+ android:key="audioSLESBufferSize2"
android:summary="@string/selectedValue"
android:title="@string/audioSLESBufferSize_title" />
@@ -108,7 +108,7 @@
private static final String VIDEO_HARDWARE_TYPE = "videoHardwareType";
private static final String AUDIO_PLUGIN = "audioPlugin";
private static final String AUDIO_SDL_BUFFER_SIZE = "audioSDLBufferSize";
- private static final String AUDIO_SLES_BUFFER_SIZE = "audioSLESBufferSize";
+ private static final String AUDIO_SLES_BUFFER_SIZE = "audioSLESBufferSize2";
private static final String TOUCHSCREEN_AUTO_HOLD = "touchscreenAutoHold";
private static final String NAVIGATION_MODE = "navigationMode";
@@ -33,7 +33,7 @@
{
// These constants must match the keys used in res/xml/preferences.xml
private static final String AUDIO_SDL_BUFFER_SIZE = "audioSDLBufferSize";
- private static final String AUDIO_SLES_BUFFER_SIZE = "audioSLESBufferSize";
+ private static final String AUDIO_SLES_BUFFER_SIZE = "audioSLESBufferSize2";
private static final String AUDIO_SLES_BUFFER_NBR = "audioSLESBufferNbr2";
private static final String AUDIO_SLES_SAMPLING_RATE = "audioSLESSamplingRate";
private static final String AUDIO_SYNCHRONIZE = "audioSynchronize";
@@ -402,7 +402,7 @@ public GlobalPrefs( Context context, AppData appData )
// Audio prefs
audioSwapChannels = mPreferences.getBoolean( "audioSwapChannels", false );
audioSDLSecondaryBufferSize = getSafeInt( mPreferences, "audioSDLBufferSize", 2048 );
- audioSLESSecondaryBufferSize = getSafeInt( mPreferences, "audioSLESBufferSize", 1024 );
+ audioSLESSecondaryBufferSize = getSafeInt( mPreferences, "audioSLESBufferSize2", 256 );
audioSLESSecondaryBufferNbr = getSafeInt( mPreferences, "audioSLESBufferNbr2", 20 );
audioSLESSamplingRate = getSafeInt( mPreferences, "audioSLESSamplingRate", 0 );

0 comments on commit a76e6a1

Please sign in to comment.