Resolves issue #69 with double audio recordings

This commit is contained in:
Denny
2016-05-30 07:25:50 -04:00
parent d520f43265
commit 90324404b2

View File

@@ -82,14 +82,10 @@ public class ChannelProcessingManager implements ChannelEventListener
* Indicates if a processing chain is constructed for the channel and that * Indicates if a processing chain is constructed for the channel and that
* the processing chain is currently processing. * the processing chain is currently processing.
*/ */
public boolean isProcessing( Channel channel ) private boolean isProcessing(Channel channel)
{ {
if( mProcessingChains.containsKey( channel.getChannelID() ) ) return mProcessingChains.containsKey(channel.getChannelID()) &&
{ mProcessingChains.get(channel.getChannelID()).isProcessing();
return mProcessingChains.get( channel.getChannelID() ).isProcessing();
}
return false;
} }
/** /**
@@ -127,6 +123,7 @@ public class ChannelProcessingManager implements ChannelEventListener
//Don't remove traffic channel processing chains //Don't remove traffic channel processing chains
//until explicitly deleted, so that we can reuse them //until explicitly deleted, so that we can reuse them
stopProcessing(channel, false); stopProcessing(channel, false);
break;
default: default:
break; break;
} }
@@ -224,11 +221,6 @@ public class ChannelProcessingManager implements ChannelEventListener
if (!recorders.isEmpty()) if (!recorders.isEmpty())
{ {
if( recorders.contains( RecorderType.AUDIO ) )
{
processingChain.addAudioPacketListener( mRecorderManager );
}
/* Add baseband recorder */ /* Add baseband recorder */
if ((recorders.contains(RecorderType.BASEBAND) && if ((recorders.contains(RecorderType.BASEBAND) &&
channel.getChannelType() == ChannelType.STANDARD)) channel.getChannelType() == ChannelType.STANDARD))