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/hle/common.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/audio_core/hle/common.h (limited to 'src/audio_core/hle/common.h') diff --git a/src/audio_core/hle/common.h b/src/audio_core/hle/common.h deleted file mode 100644 index 7fbc3ad9a..000000000 --- a/src/audio_core/hle/common.h +++ /dev/null @@ -1,34 +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 DSP { -namespace HLE { - -constexpr int num_sources = 24; -constexpr int samples_per_frame = 160; ///< Samples per audio frame at native sample rate - -/// The final output to the speakers is stereo. Preprocessing output in Source is also stereo. -using StereoFrame16 = std::array, samples_per_frame>; - -/// The DSP is quadraphonic internally. -using QuadFrame32 = std::array, samples_per_frame>; - -/** - * This performs the filter operation defined by FilterT::ProcessSample on the frame in-place. - * FilterT::ProcessSample is called sequentially on the samples. - */ -template -void FilterFrame(FrameT& frame, FilterT& filter) { - std::transform(frame.begin(), frame.end(), frame.begin(), - [&filter](const auto& sample) { return filter.ProcessSample(sample); }); -} - -} // namespace HLE -} // namespace DSP -- cgit v1.2.3