time_stretch: Simplify audio stretcher
This commit is contained in:
parent
f34711219a
commit
eed55a813e
4 changed files with 88 additions and 162 deletions
|
@ -85,7 +85,8 @@ private:
|
|||
void OutputCallback(s16* buffer, std::size_t num_frames);
|
||||
|
||||
std::unique_ptr<Sink> sink;
|
||||
bool perform_time_stretching = false;
|
||||
std::atomic<bool> perform_time_stretching = false;
|
||||
std::atomic<bool> flushing_time_stretcher = false;
|
||||
Common::RingBuffer<s16, 0x2000, 2> fifo;
|
||||
std::array<s16, 2> last_frame{};
|
||||
TimeStretcher time_stretcher;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue