comparison audioio/AudioPortAudioTarget.cpp @ 94:5828afd1d229

Fixes for Windows build
author Chris Cannam
date Thu, 25 Jan 2007 17:41:00 +0000
parents 52409ab73526
children 76fa8f657038
comparison
equal deleted inserted replaced
93:14cc0a78f340 94:5828afd1d229
20 20
21 #include <iostream> 21 #include <iostream>
22 #include <cassert> 22 #include <cassert>
23 #include <cmath> 23 #include <cmath>
24 24
25 //#define DEBUG_AUDIO_PORT_AUDIO_TARGET 1 25 #define DEBUG_AUDIO_PORT_AUDIO_TARGET 1
26 26
27 AudioPortAudioTarget::AudioPortAudioTarget(AudioCallbackPlaySource *source) : 27 AudioPortAudioTarget::AudioPortAudioTarget(AudioCallbackPlaySource *source) :
28 AudioCallbackPlayTarget(source), 28 AudioCallbackPlayTarget(source),
29 m_stream(0), 29 m_stream(0),
30 m_bufferSize(0), 30 m_bufferSize(0),
95 std::cerr << "AudioPortAudioTarget: block size " << m_bufferSize << std::endl; 95 std::cerr << "AudioPortAudioTarget: block size " << m_bufferSize << std::endl;
96 m_source->setTargetBlockSize(m_bufferSize); 96 m_source->setTargetBlockSize(m_bufferSize);
97 m_source->setTargetSampleRate(m_sampleRate); 97 m_source->setTargetSampleRate(m_sampleRate);
98 m_source->setTargetPlayLatency(m_latency); 98 m_source->setTargetPlayLatency(m_latency);
99 } 99 }
100
101 #ifdef DEBUG_PORT_AUDIO_TARGET
102 std::cerr << "AudioPortAudioTarget: initialised OK" << std::endl;
103 #endif
100 } 104 }
101 105
102 AudioPortAudioTarget::~AudioPortAudioTarget() 106 AudioPortAudioTarget::~AudioPortAudioTarget()
103 { 107 {
104 if (m_stream) { 108 if (m_stream) {