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.
This commit is contained in:
denny
2015-12-13 09:22:47 -05:00
parent a42e6e81ad
commit 9c436033fb

View File

@@ -275,7 +275,7 @@ public class AudioManager implements Listener<AudioPacket>, 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<AudioPacket>, IAudioController
switch( event.getType() )
{
case AUDIO_STARTED:
mAudioStoppedTime = Long.MAX_VALUE;
break;
case AUDIO_STOPPED:
mAudioStoppedTime = System.currentTimeMillis();
break;