mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-16 18:47:33 -05:00
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* *****************************************************************************
|
* *****************************************************************************
|
||||||
* Copyright (C) 2014-2020 Dennis Sheirer
|
* Copyright (C) 2014-2021 Dennis Sheirer
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -21,6 +21,7 @@ package io.github.dsheirer.record;
|
|||||||
|
|
||||||
import io.github.dsheirer.controller.channel.Channel;
|
import io.github.dsheirer.controller.channel.Channel;
|
||||||
import io.github.dsheirer.module.Module;
|
import io.github.dsheirer.module.Module;
|
||||||
|
import io.github.dsheirer.module.decode.dmr.audio.DMRCallSequenceRecorder;
|
||||||
import io.github.dsheirer.module.decode.p25.audio.P25P1CallSequenceRecorder;
|
import io.github.dsheirer.module.decode.p25.audio.P25P1CallSequenceRecorder;
|
||||||
import io.github.dsheirer.module.decode.p25.audio.P25P2CallSequenceRecorder;
|
import io.github.dsheirer.module.decode.p25.audio.P25P2CallSequenceRecorder;
|
||||||
import io.github.dsheirer.preference.UserPreferences;
|
import io.github.dsheirer.preference.UserPreferences;
|
||||||
@@ -35,13 +36,15 @@ import java.nio.file.Path;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Factory for creating recorder modules.
|
||||||
|
*/
|
||||||
public class RecorderFactory
|
public class RecorderFactory
|
||||||
{
|
{
|
||||||
public static final float BASEBAND_SAMPLE_RATE = 25000.0f; //Default sample rate - source can override
|
public static final float BASEBAND_SAMPLE_RATE = 25000.0f; //Default sample rate - source can override
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates recorder modules based on the channel configuration details
|
* Creates recorder modules based on the channel configuration details
|
||||||
* @param recorderManager
|
|
||||||
* @param userPreferences
|
* @param userPreferences
|
||||||
* @param channel
|
* @param channel
|
||||||
* @return
|
* @return
|
||||||
@@ -96,6 +99,10 @@ public class RecorderFactory
|
|||||||
|
|
||||||
switch(channel.getDecodeConfiguration().getDecoderType())
|
switch(channel.getDecodeConfiguration().getDecoderType())
|
||||||
{
|
{
|
||||||
|
case DMR:
|
||||||
|
recorderModules.add(new DMRCallSequenceRecorder(userPreferences, frequency,
|
||||||
|
channel.getSystem(), channel.getSite()));
|
||||||
|
break;
|
||||||
case P25_PHASE1:
|
case P25_PHASE1:
|
||||||
recorderModules.add(new P25P1CallSequenceRecorder(userPreferences, frequency,
|
recorderModules.add(new P25P1CallSequenceRecorder(userPreferences, frequency,
|
||||||
channel.getSystem(), channel.getSite()));
|
channel.getSystem(), channel.getSite()));
|
||||||
|
|||||||
Reference in New Issue
Block a user