summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-24 23:39:53 +0200
committerGitHub <noreply@github.com>2018-10-24 23:39:53 +0200
commit29f748a65804bf5ad35410bce955dda1d52459a9 (patch)
tree22aa78a5c71059b0ad3d28f7a6d126ce55dadba5 /src
parentMerge pull request #1554 from FernandoS27/pointsize (diff)
parenttime_stretch: Remove unused m_channel_count member variable (diff)
downloadyuzu-29f748a65804bf5ad35410bce955dda1d52459a9.tar
yuzu-29f748a65804bf5ad35410bce955dda1d52459a9.tar.gz
yuzu-29f748a65804bf5ad35410bce955dda1d52459a9.tar.bz2
yuzu-29f748a65804bf5ad35410bce955dda1d52459a9.tar.lz
yuzu-29f748a65804bf5ad35410bce955dda1d52459a9.tar.xz
yuzu-29f748a65804bf5ad35410bce955dda1d52459a9.tar.zst
yuzu-29f748a65804bf5ad35410bce955dda1d52459a9.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/time_stretch.cpp3
-rw-r--r--src/audio_core/time_stretch.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/audio_core/time_stretch.cpp b/src/audio_core/time_stretch.cpp
index d72d67994..cee8b12dd 100644
--- a/src/audio_core/time_stretch.cpp
+++ b/src/audio_core/time_stretch.cpp
@@ -10,8 +10,7 @@
namespace AudioCore {
-TimeStretcher::TimeStretcher(u32 sample_rate, u32 channel_count)
- : m_sample_rate(sample_rate), m_channel_count(channel_count) {
+TimeStretcher::TimeStretcher(u32 sample_rate, u32 channel_count) : m_sample_rate{sample_rate} {
m_sound_touch.setChannels(channel_count);
m_sound_touch.setSampleRate(sample_rate);
m_sound_touch.setPitch(1.0);
diff --git a/src/audio_core/time_stretch.h b/src/audio_core/time_stretch.h
index decd760f1..bb2270b96 100644
--- a/src/audio_core/time_stretch.h
+++ b/src/audio_core/time_stretch.h
@@ -27,7 +27,6 @@ public:
private:
u32 m_sample_rate;
- u32 m_channel_count;
soundtouch::SoundTouch m_sound_touch;
double m_stretch_ratio = 1.0;
};