mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 18:32:49 -06:00
time_stretch: Remove unused m_channel_count member variable
This is only stored to, but never read from.
This commit is contained in:
parent
a94e5d9e68
commit
6d27614994
2 changed files with 1 additions and 3 deletions
|
@ -10,8 +10,7 @@
|
||||||
|
|
||||||
namespace AudioCore {
|
namespace AudioCore {
|
||||||
|
|
||||||
TimeStretcher::TimeStretcher(u32 sample_rate, u32 channel_count)
|
TimeStretcher::TimeStretcher(u32 sample_rate, u32 channel_count) : m_sample_rate{sample_rate} {
|
||||||
: m_sample_rate(sample_rate), m_channel_count(channel_count) {
|
|
||||||
m_sound_touch.setChannels(channel_count);
|
m_sound_touch.setChannels(channel_count);
|
||||||
m_sound_touch.setSampleRate(sample_rate);
|
m_sound_touch.setSampleRate(sample_rate);
|
||||||
m_sound_touch.setPitch(1.0);
|
m_sound_touch.setPitch(1.0);
|
||||||
|
|
|
@ -27,7 +27,6 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
u32 m_sample_rate;
|
u32 m_sample_rate;
|
||||||
u32 m_channel_count;
|
|
||||||
soundtouch::SoundTouch m_sound_touch;
|
soundtouch::SoundTouch m_sound_touch;
|
||||||
double m_stretch_ratio = 1.0;
|
double m_stretch_ratio = 1.0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue