comparison audioio/AudioCallbackPlaySource.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 d8017c8859eb
children 017206f2e4c5
comparison
equal deleted inserted replaced
176:d8017c8859eb 177:7dae51741cc9
97 this, SLOT(preferenceChanged(PropertyContainer::PropertyName))); 97 this, SLOT(preferenceChanged(PropertyContainer::PropertyName)));
98 } 98 }
99 99
100 AudioCallbackPlaySource::~AudioCallbackPlaySource() 100 AudioCallbackPlaySource::~AudioCallbackPlaySource()
101 { 101 {
102 #ifdef DEBUG_AUDIO_PLAY_SOURCE
103 std::cerr << "AudioCallbackPlaySource::~AudioCallbackPlaySource entering" << std::endl;
104 #endif
102 m_exiting = true; 105 m_exiting = true;
103 106
104 if (m_fillThread) { 107 if (m_fillThread) {
105 m_condition.wakeAll(); 108 m_condition.wakeAll();
106 m_fillThread->wait(); 109 m_fillThread->wait();
126 delete m_timeStretcher; 129 delete m_timeStretcher;
127 delete m_monoStretcher; 130 delete m_monoStretcher;
128 131
129 m_bufferScavenger.scavenge(true); 132 m_bufferScavenger.scavenge(true);
130 m_pluginScavenger.scavenge(true); 133 m_pluginScavenger.scavenge(true);
134 #ifdef DEBUG_AUDIO_PLAY_SOURCE
135 std::cerr << "AudioCallbackPlaySource::~AudioCallbackPlaySource finishing" << std::endl;
136 #endif
131 } 137 }
132 138
133 void 139 void
134 AudioCallbackPlaySource::addModel(Model *model) 140 AudioCallbackPlaySource::addModel(Model *model)
135 { 141 {