Added sound play range parameters. Initial work on audio input capture.

This commit is contained in:
xenakios
2017-11-13 21:21:30 +02:00
parent d9e9107ed4
commit c32e64a570
5 changed files with 57 additions and 5 deletions

View File

@ -451,6 +451,8 @@ void StretchAudioSource::setOnsetDetection(double x)
void StretchAudioSource::setPlayRange(Range<double> playrange, bool isloop)
{
std::lock_guard<std::mutex> locker(m_mutex);
if (m_playrange.isEmpty()==false && playrange == m_playrange)
return;
if (playrange.isEmpty())
m_playrange = { 0.0,1.0 };
else