Audacity 3.2.0
StaffPadTimeAndPitch.h
Go to the documentation of this file.
1#include "AudioContainer.h"
3
5
6#include <mutex>
7
8class TIME_AND_PITCH_API StaffPadTimeAndPitch final :
10{
11public:
13 int sampleRate, size_t numChannels, TimeAndPitchSource&,
14 const Parameters&);
15 void GetSamples(float* const*, size_t) override;
16 void OnCentShiftChange(int cents) override;
17
18private:
19 void BootStretcher();
20 bool IllState() const;
21 std::unique_ptr<staffpad::TimeAndPitch> mTimeAndPitch;
24 const int mSampleRate;
25 const size_t mNumChannels;
26 const double mTimeRatio;
29};
TimeAndPitchSource & mAudioSource
std::unique_ptr< staffpad::TimeAndPitch > mTimeAndPitch
virtual void OnCentShiftChange(int cents)=0
virtual void GetSamples(float *const *, size_t)=0