[Android] Audio delay and audio boost now on by default
Nicolas Pomepuy
git at videolan.org
Wed Jul 24 15:18:24 CEST 2019
vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Jul 22 14:58:34 2019 +0200| [e84ac619834df6eee25569d30d127b3bba854e17] | committer: Geoffrey Métais
Audio delay and audio boost now on by default
> https://code.videolan.org/videolan/vlc-android/commit/e84ac619834df6eee25569d30d127b3bba854e17
---
vlc-android/res/xml/preferences_video.xml | 16 ++++++++--------
.../org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 2 +-
.../src/org/videolan/vlc/media/PlaylistManager.kt | 4 ++--
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/vlc-android/res/xml/preferences_video.xml b/vlc-android/res/xml/preferences_video.xml
index ab690cff1..012343190 100644
--- a/vlc-android/res/xml/preferences_video.xml
+++ b/vlc-android/res/xml/preferences_video.xml
@@ -9,10 +9,10 @@
android:summary="@string/save_brightness_summary"
android:title="@string/save_brightness_title" />
<CheckBoxPreference
- android:defaultValue="false"
- android:key="save_individual_audio_delay"
- android:summary="@string/save_audiodelay_summary"
- android:title="@string/save_audiodelay_title" />
+ android:defaultValue="true"
+ android:key="save_individual_audio_delay"
+ android:summary="@string/save_audiodelay_summary"
+ android:title="@string/save_audiodelay_title" />
<CheckBoxPreference
android:defaultValue="false"
android:key="playback_speed"
@@ -42,10 +42,10 @@
<PreferenceCategory android:title="@string/controls_prefs_category">
<CheckBoxPreference
- android:defaultValue="false"
- android:key="audio_boost"
- android:summary="@string/audio_boost_summary"
- android:title="@string/audio_boost_title" />
+ android:defaultValue="true"
+ android:key="audio_boost"
+ android:summary="@string/audio_boost_summary"
+ android:title="@string/audio_boost_title" />
<CheckBoxPreference
android:defaultValue="true"
android:key="enable_volume_gesture"
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index 1d628ea00..6d348fdc1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -416,7 +416,7 @@ open class VideoPlayerActivity : AppCompatActivity(), IPlaybackSettingsControlle
/* Services and miscellaneous */
audiomanager = applicationContext.getSystemService(Context.AUDIO_SERVICE) as AudioManager
audioMax = audiomanager.getStreamMaxVolume(AudioManager.STREAM_MUSIC)
- isAudioBoostEnabled = settings.getBoolean("audio_boost", false)
+ isAudioBoostEnabled = settings.getBoolean("audio_boost", true)
enableCloneMode = if (clone != null) clone!! else settings.getBoolean("enable_clone_mode", false)
displayManager = DisplayManager(this, PlaybackService.renderer, false, enableCloneMode, isBenchmark)
diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 0ab35ff1a..32a088e99 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -430,7 +430,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
fun setAudioDelay(delay: Long) {
if (!player.setAudioDelay(delay)) return
val media = getCurrentMedia() ?: return
- if (media.id != 0L && settings.getBoolean("save_individual_audio_delay", false)) {
+ if (media.id != 0L && settings.getBoolean("save_individual_audio_delay", true)) {
launch(Dispatchers.IO) { media.setLongMeta(AbstractMediaWrapper.META_AUDIODELAY, player.getAudioDelay()) }
}
}
@@ -444,7 +444,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
private fun loadMediaMeta(media: AbstractMediaWrapper) {
if (media.id == 0L) return
if (player.canSwitchToVideo()) {
- if (settings.getBoolean("save_individual_audio_delay", false))
+ if (settings.getBoolean("save_individual_audio_delay", true))
player.setAudioDelay(media.getMetaLong(AbstractMediaWrapper.META_AUDIODELAY))
player.setSpuTrack(media.getMetaLong(AbstractMediaWrapper.META_SUBTITLE_TRACK).toInt())
player.setSpuDelay(media.getMetaLong(AbstractMediaWrapper.META_SUBTITLE_DELAY))
More information about the Android
mailing list