mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Resolved issue with audio cycling between channels every 2 seconds when
audio mixer has stereo channel output.
This commit is contained in:
@@ -51,6 +51,7 @@ public class MonoAudioOutput extends AudioOutput
|
||||
|
||||
private AudioEvent mAudioStartEvent;
|
||||
private AudioEvent mAudioStopEvent;
|
||||
private AudioEvent mAudioContinuationEvent;
|
||||
|
||||
public MonoAudioOutput( Mixer mixer )
|
||||
{
|
||||
@@ -60,6 +61,8 @@ public class MonoAudioOutput extends AudioOutput
|
||||
getChannelName() );
|
||||
mAudioStopEvent = new AudioEvent( AudioEvent.Type.AUDIO_STOPPED,
|
||||
getChannelName() );
|
||||
mAudioContinuationEvent = new AudioEvent( AudioEvent.Type.AUDIO_CONTINUATION,
|
||||
getChannelName() );
|
||||
|
||||
try
|
||||
{
|
||||
@@ -130,6 +133,8 @@ public class MonoAudioOutput extends AudioOutput
|
||||
|
||||
if( packets.size() > 0 )
|
||||
{
|
||||
broadcast( mAudioContinuationEvent );
|
||||
|
||||
for( AudioPacket packet: packets )
|
||||
{
|
||||
if( mCanProcessAudio )
|
||||
|
||||
Reference in New Issue
Block a user