Mercurial > hg > svapp
comparison audioio/AudioCallbackPlaySource.cpp @ 398:7373a8c262ca
Beta release dialog
author | Chris Cannam |
---|---|
date | Wed, 13 Aug 2014 21:37:25 +0100 |
parents | f747be6743ab |
children |
comparison
equal
deleted
inserted
replaced
397:f747be6743ab | 398:7373a8c262ca |
---|---|
608 // This method attempts to estimate which audio sample frame is | 608 // This method attempts to estimate which audio sample frame is |
609 // "currently coming through the speakers". | 609 // "currently coming through the speakers". |
610 | 610 |
611 int targetRate = getTargetSampleRate(); | 611 int targetRate = getTargetSampleRate(); |
612 int latency = m_playLatency; // at target rate | 612 int latency = m_playLatency; // at target rate |
613 RealTime latency_t = RealTime::frame2RealTime(latency, targetRate); | 613 |
614 RealTime latency_t; | |
615 if (targetRate != 0) { | |
616 latency_t = RealTime::frame2RealTime(latency, targetRate); | |
617 } | |
614 | 618 |
615 return getCurrentFrame(latency_t); | 619 return getCurrentFrame(latency_t); |
616 } | 620 } |
617 | 621 |
618 int | 622 int |