Mercurial > hg > svapp
comparison audioio/AudioPortAudioTarget.cpp @ 80:448ff6e34b99
* Add wave file model method for reading more than one channel at once,
avoiding ludicrously expensive backward seeks and double-reads when
playing multi-channel files or using them as inputs to feature extraction
plugins
author | Chris Cannam |
---|---|
date | Thu, 24 Jan 2008 14:35:43 +0000 |
parents | 716e9d2f91c7 |
children | 0948bf800422 |
comparison
equal
deleted
inserted
replaced
79:b1a68403714b | 80:448ff6e34b99 |
---|---|
46 if (err != paNoError) { | 46 if (err != paNoError) { |
47 std::cerr << "ERROR: AudioPortAudioTarget: Failed to initialize PortAudio: " << Pa_GetErrorText(err) << std::endl; | 47 std::cerr << "ERROR: AudioPortAudioTarget: Failed to initialize PortAudio: " << Pa_GetErrorText(err) << std::endl; |
48 return; | 48 return; |
49 } | 49 } |
50 | 50 |
51 m_bufferSize = 1024; | 51 m_bufferSize = 2048; |
52 m_sampleRate = 44100; | 52 m_sampleRate = 44100; |
53 if (m_source && (m_source->getSourceSampleRate() != 0)) { | 53 if (m_source && (m_source->getSourceSampleRate() != 0)) { |
54 m_sampleRate = m_source->getSourceSampleRate(); | 54 m_sampleRate = m_source->getSourceSampleRate(); |
55 } | 55 } |
56 | 56 |