Mercurial > hg > svapp
comparison audioio/AudioJACKTarget.cpp @ 13:89bb89894ad6
* As previous commit
author | Chris Cannam |
---|---|
date | Fri, 17 Feb 2006 18:11:08 +0000 |
parents | df5923e33d01 |
children | c2416d130d59 |
comparison
equal
deleted
inserted
replaced
12:29b38a641d43 | 13:89bb89894ad6 |
---|---|
81 m_source->setTargetBlockSize(m_bufferSize); | 81 m_source->setTargetBlockSize(m_bufferSize); |
82 m_source->setTargetSampleRate(m_sampleRate); | 82 m_source->setTargetSampleRate(m_sampleRate); |
83 | 83 |
84 size_t channels = m_source->getSourceChannelCount(); | 84 size_t channels = m_source->getSourceChannelCount(); |
85 | 85 |
86 // Because we offer pan, we always want at least 2 channels | |
87 if (channels < 2) channels = 2; | |
88 | |
86 if (channels == m_outputs.size() || !m_client) { | 89 if (channels == m_outputs.size() || !m_client) { |
87 m_mutex.unlock(); | 90 m_mutex.unlock(); |
88 return; | 91 return; |
89 } | 92 } |
90 | 93 |