mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-16 18:47:33 -05:00
#66 wip
This commit is contained in:
@@ -207,37 +207,6 @@ public class ChannelProcessingManager implements ChannelEventListener
|
|||||||
MessageActivityModel messageModel = new MessageActivityModel(messageFilter);
|
MessageActivityModel messageModel = new MessageActivityModel(messageFilter);
|
||||||
processingChain.setMessageActivityModel(messageModel);
|
processingChain.setMessageActivityModel(messageModel);
|
||||||
|
|
||||||
/* Setup event logging */
|
|
||||||
List<Module> loggers = mEventLogManager.getLoggers(
|
|
||||||
channel.getEventLogConfiguration(), channel.getName());
|
|
||||||
|
|
||||||
if (!loggers.isEmpty())
|
|
||||||
{
|
|
||||||
processingChain.addModules(loggers);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Setup recorders */
|
|
||||||
List<RecorderType> recorders = channel.getRecordConfiguration().getRecorders();
|
|
||||||
|
|
||||||
if (!recorders.isEmpty())
|
|
||||||
{
|
|
||||||
/* Add baseband recorder */
|
|
||||||
if ((recorders.contains(RecorderType.BASEBAND) &&
|
|
||||||
channel.getChannelType() == ChannelType.STANDARD))
|
|
||||||
{
|
|
||||||
processingChain.addModule(mRecorderManager.getBasebandRecorder(
|
|
||||||
channel.toString()));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Add traffic channel baseband recorder */
|
|
||||||
if (recorders.contains(RecorderType.TRAFFIC_BASEBAND) &&
|
|
||||||
channel.getChannelType() == ChannelType.TRAFFIC)
|
|
||||||
{
|
|
||||||
processingChain.addModule(mRecorderManager
|
|
||||||
.getBasebandRecorder(channel.toString()));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Inject channel metadata that will be inserted into audio packets
|
/* Inject channel metadata that will be inserted into audio packets
|
||||||
* for the recorder manager and streaming */
|
* for the recorder manager and streaming */
|
||||||
processingChain.broadcast(
|
processingChain.broadcast(
|
||||||
@@ -248,6 +217,37 @@ public class ChannelProcessingManager implements ChannelEventListener
|
|||||||
new Metadata(MetadataType.CHANNEL_NAME, channel.getName()));
|
new Metadata(MetadataType.CHANNEL_NAME, channel.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Setup event logging */
|
||||||
|
List<Module> loggers = mEventLogManager.getLoggers(
|
||||||
|
channel.getEventLogConfiguration(), channel.getName());
|
||||||
|
|
||||||
|
if (!loggers.isEmpty())
|
||||||
|
{
|
||||||
|
processingChain.addModules(loggers);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Setup recorders */
|
||||||
|
List<RecorderType> recorders = channel.getRecordConfiguration().getRecorders();
|
||||||
|
|
||||||
|
if (!recorders.isEmpty())
|
||||||
|
{
|
||||||
|
/* Add baseband recorder */
|
||||||
|
if ((recorders.contains(RecorderType.BASEBAND) &&
|
||||||
|
channel.getChannelType() == ChannelType.STANDARD))
|
||||||
|
{
|
||||||
|
processingChain.addModule(mRecorderManager.getBasebandRecorder(
|
||||||
|
channel.toString()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add traffic channel baseband recorder */
|
||||||
|
if (recorders.contains(RecorderType.TRAFFIC_BASEBAND) &&
|
||||||
|
channel.getChannelType() == ChannelType.TRAFFIC)
|
||||||
|
{
|
||||||
|
processingChain.addModule(mRecorderManager
|
||||||
|
.getBasebandRecorder(channel.toString()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
processingChain.setSource(source);
|
processingChain.setSource(source);
|
||||||
|
|
||||||
if (event instanceof TrafficChannelEvent)
|
if (event instanceof TrafficChannelEvent)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user