Mercurial > hg > svapp
changeset 158:72495c4cd315
* Add vestigial Activity Log
author | Chris Cannam |
---|---|
date | Tue, 24 Feb 2009 14:01:42 +0000 |
parents | ae56bf90cdf9 |
children | 06fc6fc21739 |
files | audioio/AudioCallbackPlaySource.cpp audioio/AudioCallbackPlaySource.h |
diffstat | 2 files changed, 16 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Mon Feb 23 17:50:17 2009 +0000 +++ b/audioio/AudioCallbackPlaySource.cpp Tue Feb 24 14:01:42 2009 +0000 @@ -427,7 +427,12 @@ m_lastCurrentFrame = 0; m_playing = true; m_condition.wakeAll(); - if (changed) emit playStatusChanged(m_playing); + if (changed) { + emit playStatusChanged(m_playing); + emit activity(tr("Play from %1").arg + (RealTime::frame2RealTime + (m_playStartFrame, m_sourceSampleRate).toText().c_str())); + } } void @@ -437,8 +442,13 @@ m_playing = false; m_condition.wakeAll(); m_lastRetrievalTimestamp = 0; + if (changed) { + emit playStatusChanged(m_playing); + emit activity(tr("Stop at %1").arg + (RealTime::frame2RealTime + (m_lastCurrentFrame, m_sourceSampleRate).toText().c_str())); + } m_lastCurrentFrame = 0; - if (changed) emit playStatusChanged(m_playing); } void @@ -973,7 +983,6 @@ if (m_timeStretcher || (factor == 1.f)) { // stretch ratio will be set in next process call if appropriate - return; } else { m_stretcherInputCount = getTargetChannelCount(); RubberBandStretcher *stretcher = new RubberBandStretcher @@ -994,8 +1003,9 @@ } m_monoStretcher = monoStretcher; m_timeStretcher = stretcher; - return; } + + emit activity(tr("Change time-stretch factor to %1").arg(factor)); } size_t
--- a/audioio/AudioCallbackPlaySource.h Mon Feb 23 17:50:17 2009 +0000 +++ b/audioio/AudioCallbackPlaySource.h Tue Feb 24 14:01:42 2009 +0000 @@ -249,6 +249,8 @@ void audioOverloadPluginDisabled(); void audioTimeStretchMultiChannelDisabled(); + void activity(QString); + public slots: void audioProcessingOverload();