mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-20 20:45:47 -05:00
Resolves issue #69 with double audio recordings
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user