summaryrefslogtreecommitdiff
path: root/system/embdrv/lc3_dec/Decoder/DecoderTop.cpp
diff options
context:
space:
mode:
authorScott Lobdell <slobdell@google.com>2022-03-11 19:27:17 +0000
committerScott Lobdell <slobdell@google.com>2022-03-11 19:57:09 +0000
commitc9218ef1b82430a07d94f74c212a30e7ccc52975 (patch)
tree241b7fdeb6bdf1cf3af925ba8996f18faa8973d9 /system/embdrv/lc3_dec/Decoder/DecoderTop.cpp
parenta26bda4d37221f2f7ef750b413502091e3bcddd4 (diff)
parent480d2270b269a0e47bf475eb439111f3f966e2a9 (diff)
Merge TP1A.220225.003
Change-Id: Id71ac466dbfe3707fe2e544ce22b1da8f474ec2b
Diffstat (limited to 'system/embdrv/lc3_dec/Decoder/DecoderTop.cpp')
-rw-r--r--system/embdrv/lc3_dec/Decoder/DecoderTop.cpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/system/embdrv/lc3_dec/Decoder/DecoderTop.cpp b/system/embdrv/lc3_dec/Decoder/DecoderTop.cpp
deleted file mode 100644
index 5b7f6acb36..0000000000
--- a/system/embdrv/lc3_dec/Decoder/DecoderTop.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * DecoderTop.cpp
- *
- * Copyright 2021 HIMSA II K/S - www.himsa.com. Represented by EHIMA -
- * www.ehima.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "DecoderTop.hpp"
-
-namespace Lc3Dec {
-
-DecoderTop::DecoderTop(uint16_t fs_, DatapointContainer* datapoints_)
- : DecoderTop(Lc3Config(fs_, Lc3Config::FrameDuration::d10ms, 1),
- datapoints_) {}
-
-DecoderTop::DecoderTop(Lc3Config lc3Config_, DatapointContainer* datapoints_)
- : lc3Config(lc3Config_),
- datapoints(datapoints_),
- decoderCurrentFrame(nullptr),
- decoderPreviousFrame(nullptr),
- residualSpectrum(lc3Config_.NE),
- spectralNoiseShaping(lc3Config),
- packetLossConcealment(lc3Config_.NE),
- mdctDec(lc3Config) {
- if (nullptr != datapoints) {
- residualSpectrum.registerDatapoints(datapoints);
- spectralNoiseShaping.registerDatapoints(datapoints);
- packetLossConcealment.registerDatapoints(datapoints);
- mdctDec.registerDatapoints(datapoints);
- }
-}
-
-DecoderTop::~DecoderTop() {
- if (nullptr != decoderPreviousFrame) {
- delete decoderPreviousFrame;
- }
- if (nullptr != decoderCurrentFrame) {
- delete decoderCurrentFrame;
- }
-}
-
-} // namespace Lc3Dec