# HG changeset patch # User Chris Cannam # Date 1215450978 0 # Node ID 883f7fc7fd3493f156312e8586a70cc5f5bcd50f # Parent 4c9c0464568541db786bdddfcf2afec614476548 * fix thtoopid mithtake diff -r 4c9c04645685 -r 883f7fc7fd34 audioio/AudioCallbackPlaySource.cpp --- a/audioio/AudioCallbackPlaySource.cpp Mon Jul 07 16:49:53 2008 +0000 +++ b/audioio/AudioCallbackPlaySource.cpp Mon Jul 07 17:16:18 2008 +0000 @@ -1125,7 +1125,7 @@ #endif for (size_t c = 0; c < channels; ++c) { - if (c >= m_stretcherInputSizes) continue; + if (c >= m_stretcherInputCount) continue; if (reqd > m_stretcherInputSizes[c]) { if (c == 0) { std::cerr << "WARNING: resizing stretcher input buffer from " << m_stretcherInputSizes[c] << " to " << (reqd * 2) << std::endl; @@ -1137,7 +1137,7 @@ } for (size_t c = 0; c < channels; ++c) { - if (c >= m_stretcherInputSizes) continue; + if (c >= m_stretcherInputCount) continue; RingBuffer *rb = getReadRingBuffer(c); if (rb) { size_t gotHere;