Resolved issue with audio cycling between channels every 2 seconds when

audio mixer has stereo channel output.
This commit is contained in:
denny
2015-12-13 09:45:52 -05:00
parent 2bcffa0f44
commit 47f36590fb
4 changed files with 12 additions and 0 deletions

View File

@@ -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 )