Some initial work on using AudioPlayHead

This commit is contained in:
xenakios
2017-12-19 23:00:42 +02:00
parent 77f514701c
commit bcd03d923e
4 changed files with 10 additions and 2 deletions

View File

@ -351,6 +351,11 @@ void copyAudioBufferWrappingPosition(const AudioBuffer<float>& src, AudioBuffer<
void PaulstretchpluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
{
ScopedLock locker(m_cs);
AudioPlayHead* phead = getPlayHead();
if (phead != nullptr)
{
phead->getCurrentPosition(m_playposinfo);
}
ScopedNoDenormals noDenormals;
double srtemp = getSampleRate();
if (srtemp != m_cur_sr)