summaryrefslogtreecommitdiffstats
path: root/src/audio_core/interpolate.h
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2018-01-12 03:21:20 +0100
committerJames Rowe <jroweboy@gmail.com>2018-01-13 03:11:03 +0100
commitebf9a784a9f7f4148a669dbb39e7cd50df779a14 (patch)
treed585685a1c0a34b903af1d086d62560bf56bb29f /src/audio_core/interpolate.h
parentconfig: Default CPU core to Unicorn. (diff)
downloadyuzu-ebf9a784a9f7f4148a669dbb39e7cd50df779a14.tar
yuzu-ebf9a784a9f7f4148a669dbb39e7cd50df779a14.tar.gz
yuzu-ebf9a784a9f7f4148a669dbb39e7cd50df779a14.tar.bz2
yuzu-ebf9a784a9f7f4148a669dbb39e7cd50df779a14.tar.lz
yuzu-ebf9a784a9f7f4148a669dbb39e7cd50df779a14.tar.xz
yuzu-ebf9a784a9f7f4148a669dbb39e7cd50df779a14.tar.zst
yuzu-ebf9a784a9f7f4148a669dbb39e7cd50df779a14.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/interpolate.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/audio_core/interpolate.h b/src/audio_core/interpolate.h
deleted file mode 100644
index 8dff6111a..000000000
--- a/src/audio_core/interpolate.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2016 Citra Emulator Project
-// Licensed under GPLv2 or any later version
-// Refer to the license.txt file included.
-
-#pragma once
-
-#include <array>
-#include <deque>
-#include "audio_core/hle/common.h"
-#include "common/common_types.h"
-
-namespace AudioInterp {
-
-/// A variable length buffer of signed PCM16 stereo samples.
-using StereoBuffer16 = std::deque<std::array<s16, 2>>;
-
-struct State {
- /// Two historical samples.
- std::array<s16, 2> xn1 = {}; ///< x[n-1]
- std::array<s16, 2> xn2 = {}; ///< x[n-2]
- /// Current fractional position.
- u64 fposition = 0;
-};
-
-/**
- * No interpolation. This is equivalent to a zero-order hold. There is a two-sample predelay.
- * @param state Interpolation state.
- * @param input Input buffer.
- * @param rate Stretch factor. Must be a positive non-zero value.
- * rate > 1.0 performs decimation and rate < 1.0 performs upsampling.
- * @param output The resampled audio buffer.
- * @param outputi The index of output to start writing to.
- */
-void None(State& state, StereoBuffer16& input, float rate, DSP::HLE::StereoFrame16& output,
- size_t& outputi);
-
-/**
- * Linear interpolation. This is equivalent to a first-order hold. There is a two-sample predelay.
- * @param state Interpolation state.
- * @param input Input buffer.
- * @param rate Stretch factor. Must be a positive non-zero value.
- * rate > 1.0 performs decimation and rate < 1.0 performs upsampling.
- * @param output The resampled audio buffer.
- * @param outputi The index of output to start writing to.
- */
-void Linear(State& state, StereoBuffer16& input, float rate, DSP::HLE::StereoFrame16& output,
- size_t& outputi);
-
-} // namespace AudioInterp