From ebf9a784a9f7f4148a669dbb39e7cd50df779a14 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Thu, 11 Jan 2018 19:21:20 -0700 Subject: Massive removal of unused modules --- src/audio_core/codec.h | 51 -------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/audio_core/codec.h (limited to 'src/audio_core/codec.h') diff --git a/src/audio_core/codec.h b/src/audio_core/codec.h deleted file mode 100644 index 877b2202d..000000000 --- a/src/audio_core/codec.h +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2016 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include -#include -#include "common/common_types.h" - -namespace Codec { - -/// A variable length buffer of signed PCM16 stereo samples. -using StereoBuffer16 = std::deque>; - -/// See: Codec::DecodeADPCM -struct ADPCMState { - // Two historical samples from previous processed buffer, - // required for ADPCM decoding - s16 yn1; ///< y[n-1] - s16 yn2; ///< y[n-2] -}; - -/** - * @param data Pointer to buffer that contains ADPCM data to decode - * @param sample_count Length of buffer in terms of number of samples - * @param adpcm_coeff ADPCM coefficients - * @param state ADPCM state, this is updated with new state - * @return Decoded stereo signed PCM16 data, sample_count in length - */ -StereoBuffer16 DecodeADPCM(const u8* const data, const size_t sample_count, - const std::array& adpcm_coeff, ADPCMState& state); - -/** - * @param num_channels Number of channels - * @param data Pointer to buffer that contains PCM8 data to decode - * @param sample_count Length of buffer in terms of number of samples - * @return Decoded stereo signed PCM16 data, sample_count in length - */ -StereoBuffer16 DecodePCM8(const unsigned num_channels, const u8* const data, - const size_t sample_count); - -/** - * @param num_channels Number of channels - * @param data Pointer to buffer that contains PCM16 data to decode - * @param sample_count Length of buffer in terms of number of samples - * @return Decoded stereo signed PCM16 data, sample_count in length - */ -StereoBuffer16 DecodePCM16(const unsigned num_channels, const u8* const data, - const size_t sample_count); -}; -- cgit v1.2.3