Mercurial > hg > svapp
diff audioio/AudioCallbackPlaySource.cpp @ 25:4593a7ebad93
* Ensure plugin parameters for a transform are saved in the .sv file and
restored in case the plugin has to be run again
* Make plugin dialog offer options for mixdown/single-channel use if the
file has more than one channels but the plugin only accepts one
* Fix incorrect samplerate playback for second file loaded if its samplerate
differed from first
* Add Zoom to Fit and Select Visible Range menu options, split out Import
Audio into main model and secondary model options
* Add stubs for cut, copy and paste operations (not implemented yet)
author | Chris Cannam |
---|---|
date | Thu, 30 Mar 2006 13:18:11 +0000 |
parents | a0900900a6f6 |
children | ca4ee67b2358 |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Mon Mar 27 15:03:02 2006 +0000 +++ b/audioio/AudioCallbackPlaySource.cpp Thu Mar 30 13:18:11 2006 +0000 @@ -117,6 +117,8 @@ << " vs " << m_sourceSampleRate << "), playback will be wrong" << std::endl; + emit sampleRateMismatch(model->getSampleRate(), m_sourceSampleRate, + false); } size_t modelChannels = 1; @@ -519,9 +521,16 @@ std::cerr << "AudioCallbackPlaySource::setModel: ERROR in creating samplerate converter: " << src_strerror(err) << std::endl; - } - emit sampleRateMismatch(getSourceSampleRate(), getTargetSampleRate()); + emit sampleRateMismatch(getSourceSampleRate(), + getTargetSampleRate(), + false); + } else { + + emit sampleRateMismatch(getSourceSampleRate(), + getTargetSampleRate(), + true); + } } }