Skip to content

Commit

Permalink
#1014 Adds AMBE voice frame recording support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Sheirer committed Nov 21, 2021
1 parent 87b3d34 commit 2aae2ed
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/java/io/github/dsheirer/record/RecorderFactory.java
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -21,6 +21,7 @@

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;
Expand All @@ -35,13 +36,15 @@
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
Expand Down Expand Up @@ -96,6 +99,10 @@ else if(channel.getSourceConfiguration() instanceof SourceConfigTunerMultipleFre

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()));
Expand Down

0 comments on commit 2aae2ed

Please sign in to comment.