#1014 Adds AMBE voice frame recording support. (#1108)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
Denny Sheirer
2021-11-21 04:56:58 -05:00
committed by GitHub
parent 87b3d34024
commit 6a54fe101c

View File

@@ -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
* 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.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.P25P2CallSequenceRecorder;
import io.github.dsheirer.preference.UserPreferences;
@@ -35,13 +36,15 @@ import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
/**
* Factory for creating recorder modules.
*/
public class RecorderFactory
{
public static final float BASEBAND_SAMPLE_RATE = 25000.0f; //Default sample rate - source can override
/**
* Creates recorder modules based on the channel configuration details
* @param recorderManager
* @param userPreferences
* @param channel
* @return
@@ -96,6 +99,10 @@ public class RecorderFactory
switch(channel.getDecodeConfiguration().getDecoderType())
{
case DMR:
recorderModules.add(new DMRCallSequenceRecorder(userPreferences, frequency,
channel.getSystem(), channel.getSite()));
break;
case P25_PHASE1:
recorderModules.add(new P25P1CallSequenceRecorder(userPreferences, frequency,
channel.getSystem(), channel.getSite()));