From 9c436033fb91f31b699e80b60524d3fa0ed20385 Mon Sep 17 00:00:00 2001 From: denny Date: Sun, 13 Dec 2015 09:22:47 -0500 Subject: [PATCH] Resolves issue with audio playback where a call starts but not enough audio samples are produced to cause the audio channel to start playback (doesn't exceed threshold), causing the audio channel to become locked until there was new audio from the same talkgroup. --- src/audio/AudioManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/audio/AudioManager.java b/src/audio/AudioManager.java index 39d1834a..239ebf24 100644 --- a/src/audio/AudioManager.java +++ b/src/audio/AudioManager.java @@ -275,7 +275,7 @@ public class AudioManager implements Listener, IAudioController private AudioOutput mAudioOutput; private int mPriority; - private long mAudioStoppedTime = Long.MAX_VALUE; + private long mAudioStoppedTime = System.currentTimeMillis(); public AudioChannelAssignment( AudioOutput audioOutput, int priority ) { @@ -318,8 +318,6 @@ public class AudioManager implements Listener, IAudioController switch( event.getType() ) { case AUDIO_STARTED: - mAudioStoppedTime = Long.MAX_VALUE; - break; case AUDIO_STOPPED: mAudioStoppedTime = System.currentTimeMillis(); break;