Mercurial > hg > svapp
diff audioio/AudioPortAudioTarget.cpp @ 177:7dae51741cc9
* Fix crash on exit on win32. This was caused by incorrectly using fftw_free()
to free the string returned from fftw_export_wisdom_to_string(), instead of
plain free().
* Various debug artifacts related to tracking down the above
author | Chris Cannam |
---|---|
date | Fri, 14 Aug 2009 14:01:09 +0000 |
parents | 4c9c04645685 |
children | 58b64dbb49c6 |
line wrap: on
line diff
--- a/audioio/AudioPortAudioTarget.cpp Thu Jul 16 13:57:18 2009 +0000 +++ b/audioio/AudioPortAudioTarget.cpp Fri Aug 14 14:01:09 2009 +0000 @@ -141,6 +141,9 @@ void AudioPortAudioTarget::shutdown() { +#ifdef DEBUG_PORT_AUDIO_TARGET + std::cerr << "AudioPortAudioTarget::shutdown" << std::endl; +#endif m_done = true; } @@ -181,10 +184,15 @@ PaStreamCallbackFlags) { #ifdef DEBUG_AUDIO_PORT_AUDIO_TARGET - std::cout << "AudioPortAudioTarget::process(" << nframes << ")" << std::endl; + std::cerr << "AudioPortAudioTarget::process(" << nframes << ")" << std::endl; #endif - if (!m_source || m_done) return 0; + if (!m_source || m_done) { +#ifdef DEBUG_AUDIO_PORT_AUDIO_TARGET + std::cerr << "AudioPortAudioTarget::process: Doing nothing, no source or application done" << std::endl; +#endif + return 0; + } float *output = (float *)outputBuffer;