1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-01-11 09:50:32 +00:00

Merge pull request #2120 from Redirion/patch-1

Fix delayed ducking of Audio
This commit is contained in:
Christian Schabesberger 2019-02-19 14:30:11 +01:00 committed by GitHub
commit 0d3dd94559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ public class AudioReactor implements AudioManager.OnAudioFocusChangeListener,
private void onAudioFocusLossCanDuck() { private void onAudioFocusLossCanDuck() {
Log.d(TAG, "onAudioFocusLossCanDuck() called"); Log.d(TAG, "onAudioFocusLossCanDuck() called");
// Set the volume to 1/10 on ducking // Set the volume to 1/10 on ducking
animateAudio(player.getVolume(), DUCK_AUDIO_TO); player.setVolume(DUCK_AUDIO_TO);
} }
private void animateAudio(final float from, final float to) { private void animateAudio(final float from, final float to) {