# HG changeset patch # User Chris Cannam # Date 1141408341 0 # Node ID ba31fa322f93f96aa1f162474a8a82904096fd2a # Parent c2416d130d59b1fc42d16d8b7156d718187cba89 * Fix a crash in PortAudio output for mono data * Don't construct a chromagram in TonalChangeDetect plugin ctor * Update layer show/hide/dormancy for multi-view-capable layers -- the dormancy concept doesn't really work with these constraints any more diff -r c2416d130d59 -r ba31fa322f93 audioio/AudioPortAudioTarget.cpp --- a/audioio/AudioPortAudioTarget.cpp Fri Mar 03 17:23:27 2006 +0000 +++ b/audioio/AudioPortAudioTarget.cpp Fri Mar 03 17:52:21 2006 +0000 @@ -124,6 +124,9 @@ size_t sourceChannels = m_source->getSourceChannelCount(); + // Because we offer pan, we always want at least 2 channels + if (sourceChannels < 2) sourceChannels = 2; + if (!tmpbuf || tmpbufch != sourceChannels || tmpbufsz < m_bufferSize) { if (tmpbuf) {