Mercurial > hg > easaier-soundaccess
diff sv/audioio/AudioCallbackPlaySource.cpp @ 79:afcf540ae3a2
add the real time filter stack to manage real time filters and their attributes
author | lbajardsilogic |
---|---|
date | Tue, 19 Jun 2007 15:15:12 +0000 |
parents | fc9323a41f5a |
children | 8ebc85f6ce4e |
line wrap: on
line diff
--- a/sv/audioio/AudioCallbackPlaySource.cpp Wed Jun 13 15:49:23 2007 +0000 +++ b/sv/audioio/AudioCallbackPlaySource.cpp Tue Jun 19 15:15:12 2007 +0000 @@ -59,7 +59,8 @@ m_fillThread(0), m_converter(0), m_crapConverter(0), - m_resampleQuality(Preferences::getInstance()->getResampleQuality()) + m_resampleQuality(Preferences::getInstance()->getResampleQuality()), + m_filterStack(0) { m_viewManager->setAudioPlaySource(this); @@ -827,6 +828,8 @@ applyAuditioningEffect(count, buffer); + applyRealTimeFilters(count, buffer); + m_condition.wakeAll(); return got; } @@ -918,6 +921,8 @@ applyAuditioningEffect(count, buffer); + applyRealTimeFilters(count, buffer); + m_condition.wakeAll(); return count; @@ -1463,3 +1468,11 @@ s.m_mutex.unlock(); } +void AudioCallbackPlaySource::applyRealTimeFilters(size_t count, float **buffers) +{ + if (!m_filterStack) return; + + m_filterStack->putInput(buffers, count); + m_filterStack->getOutput(buffers, count); + +} \ No newline at end of file