summaryrefslogtreecommitdiff
path: root/src/audio_core/interpolate.h
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2016-09-18 09:38:01 +0900
committerGravatar Emmanuel Gil Peyrot2016-09-18 09:38:01 +0900
commitdc8479928c5aee4c6ad6fe4f59006fb604cee701 (patch)
tree569a7f13128450bbab973236615587ff00bced5f /src/audio_core/interpolate.h
parentTravis: Import Dolphin’s clang-format hook. (diff)
downloadyuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.tar.gz
yuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.tar.xz
yuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.zip
Sources: Run clang-format on everything.
Diffstat (limited to 'src/audio_core/interpolate.h')
-rw-r--r--src/audio_core/interpolate.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/audio_core/interpolate.h b/src/audio_core/interpolate.h
index a4c0a453d..99e5b9657 100644
--- a/src/audio_core/interpolate.h
+++ b/src/audio_core/interpolate.h
@@ -24,7 +24,8 @@ struct State {
24 * No interpolation. This is equivalent to a zero-order hold. There is a two-sample predelay. 24 * No interpolation. This is equivalent to a zero-order hold. There is a two-sample predelay.
25 * @param input Input buffer. 25 * @param input Input buffer.
26 * @param rate_multiplier Stretch factor. Must be a positive non-zero value. 26 * @param rate_multiplier Stretch factor. Must be a positive non-zero value.
27 * rate_multiplier > 1.0 performs decimation and rate_multipler < 1.0 performs upsampling. 27 * rate_multiplier > 1.0 performs decimation and rate_multipler < 1.0
28 * performs upsampling.
28 * @return The resampled audio buffer. 29 * @return The resampled audio buffer.
29 */ 30 */
30StereoBuffer16 None(State& state, const StereoBuffer16& input, float rate_multiplier); 31StereoBuffer16 None(State& state, const StereoBuffer16& input, float rate_multiplier);
@@ -33,7 +34,8 @@ StereoBuffer16 None(State& state, const StereoBuffer16& input, float rate_multip
33 * Linear interpolation. This is equivalent to a first-order hold. There is a two-sample predelay. 34 * Linear interpolation. This is equivalent to a first-order hold. There is a two-sample predelay.
34 * @param input Input buffer. 35 * @param input Input buffer.
35 * @param rate_multiplier Stretch factor. Must be a positive non-zero value. 36 * @param rate_multiplier Stretch factor. Must be a positive non-zero value.
36 * rate_multiplier > 1.0 performs decimation and rate_multipler < 1.0 performs upsampling. 37 * rate_multiplier > 1.0 performs decimation and rate_multipler < 1.0
38 * performs upsampling.
37 * @return The resampled audio buffer. 39 * @return The resampled audio buffer.
38 */ 40 */
39StereoBuffer16 Linear(State& state, const StereoBuffer16& input, float rate_multiplier); 41StereoBuffer16 Linear(State& state, const StereoBuffer16& input, float rate_multiplier);