comparison audioio/AudioPortAudioTarget.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 ebe07d3560e6
children
comparison
equal deleted inserted replaced
24:a0900900a6f6 25:4593a7ebad93
45 m_sampleRate = m_source->getSourceSampleRate(); 45 m_sampleRate = m_source->getSourceSampleRate();
46 } 46 }
47 47
48 m_latency = Pa_GetMinNumBuffers(m_bufferSize, m_sampleRate) * m_bufferSize; 48 m_latency = Pa_GetMinNumBuffers(m_bufferSize, m_sampleRate) * m_bufferSize;
49 49
50 std::cerr << "\n\n\nLATENCY= " << m_latency << std::endl;
51
50 err = Pa_OpenDefaultStream(&m_stream, 0, 2, paFloat32, 52 err = Pa_OpenDefaultStream(&m_stream, 0, 2, paFloat32,
51 m_sampleRate, m_bufferSize, 0, 53 m_sampleRate, m_bufferSize, 0,
52 processStatic, this); 54 processStatic, this);
53 55
54 if (err != paNoError) { 56 if (err != paNoError) {