From 6a54fe101c2e898998a4abb879ef69d5676e7918 Mon Sep 17 00:00:00 2001 From: Denny Sheirer Date: Sun, 21 Nov 2021 04:56:58 -0500 Subject: [PATCH] #1014 Adds AMBE voice frame recording support. (#1108) Co-authored-by: Dennis Sheirer --- .../io/github/dsheirer/record/RecorderFactory.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/dsheirer/record/RecorderFactory.java b/src/main/java/io/github/dsheirer/record/RecorderFactory.java index 2689c9e0..9ce170d0 100644 --- a/src/main/java/io/github/dsheirer/record/RecorderFactory.java +++ b/src/main/java/io/github/dsheirer/record/RecorderFactory.java @@ -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()));