Support resampled playrate changes for non stretched playback

This commit is contained in:
xenakios
2018-08-20 15:49:51 +03:00
parent d0f912ba1f
commit 8d008e5d2e
6 changed files with 29 additions and 3 deletions

View File

@ -104,6 +104,8 @@ public:
double getLoopXFadeLengtj() const { return m_loopxfadelen; }
void setPreviewDry(bool b);
bool isPreviewingDry() const;
void setDryPlayrate(double rate);
double getDryPlayrate() const;
int m_param_change_count = 0;
double getLastSeekPos() const { return m_seekpos; }
CriticalSection* getMutex() { return &m_cs; }
@ -163,6 +165,7 @@ private:
} m_xfadetask;
int m_pause_fade_counter = 0;
bool m_preview_dry = false;
double m_dryplayrate = 1.0;
AudioBuffer<float> m_drypreviewbuf;
void playDrySound(const AudioSourceChannelInfo & bufferToFill);
};