summaryrefslogtreecommitdiffstats
path: root/src/audio_core/time_stretch.h
diff options
context:
space:
mode:
authormerry <git@mary.rs>2022-04-02 21:49:21 +0200
committerGitHub <noreply@github.com>2022-04-02 21:49:21 +0200
commit7f1e66e94be9a207bf5ec21cd6f02562bde25eca (patch)
tree5bb1a72eb10bf424ceef8af7ee6ca64849d43268 /src/audio_core/time_stretch.h
parentMerge pull request #8141 from merryhime/configure-hotkeys-columns (diff)
parentaudio_core: remove time stretcher (diff)
downloadyuzu-7f1e66e94be9a207bf5ec21cd6f02562bde25eca.tar
yuzu-7f1e66e94be9a207bf5ec21cd6f02562bde25eca.tar.gz
yuzu-7f1e66e94be9a207bf5ec21cd6f02562bde25eca.tar.bz2
yuzu-7f1e66e94be9a207bf5ec21cd6f02562bde25eca.tar.lz
yuzu-7f1e66e94be9a207bf5ec21cd6f02562bde25eca.tar.xz
yuzu-7f1e66e94be9a207bf5ec21cd6f02562bde25eca.tar.zst
yuzu-7f1e66e94be9a207bf5ec21cd6f02562bde25eca.zip
Diffstat (limited to 'src/audio_core/time_stretch.h')
-rw-r--r--src/audio_core/time_stretch.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/audio_core/time_stretch.h b/src/audio_core/time_stretch.h
deleted file mode 100644
index bb2270b96..000000000
--- a/src/audio_core/time_stretch.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2018 yuzu Emulator Project
-// Licensed under GPLv2 or any later version
-// Refer to the license.txt file included.
-
-#pragma once
-
-#include <cstddef>
-#include <SoundTouch.h>
-#include "common/common_types.h"
-
-namespace AudioCore {
-
-class TimeStretcher {
-public:
- TimeStretcher(u32 sample_rate, u32 channel_count);
-
- /// @param in Input sample buffer
- /// @param num_in Number of input frames in `in`
- /// @param out Output sample buffer
- /// @param num_out Desired number of output frames in `out`
- /// @returns Actual number of frames written to `out`
- std::size_t Process(const s16* in, std::size_t num_in, s16* out, std::size_t num_out);
-
- void Clear();
-
- void Flush();
-
-private:
- u32 m_sample_rate;
- soundtouch::SoundTouch m_sound_touch;
- double m_stretch_ratio = 1.0;
-};
-
-} // namespace AudioCore