25 |
|
|
26 |
#include "InstrumentResourceManager.h" |
#include "InstrumentResourceManager.h" |
27 |
|
|
28 |
#include "../InstrumentEditorFactory.h" |
#include "../../common/global_private.h" |
29 |
|
#include "../../plugins/InstrumentEditorFactory.h" |
30 |
|
|
31 |
// We need to know the maximum number of sample points which are going to |
// We need to know the maximum number of sample points which are going to |
32 |
// be processed for each render cycle of the audio output driver, to know |
// be processed for each render cycle of the audio output driver, to know |
168 |
InstrumentEditorProxiesMutex.Unlock(); |
InstrumentEditorProxiesMutex.Unlock(); |
169 |
std::cerr << "Eeeek, could not find instrument editor proxy, this is a bug!\n" << std::flush; |
std::cerr << "Eeeek, could not find instrument editor proxy, this is a bug!\n" << std::flush; |
170 |
} |
} |
171 |
// free the editor |
|
172 |
InstrumentEditorFactory::Destroy(pSender); |
// Note that we don't need to free the editor here. As it |
173 |
|
// derives from Thread, it will delete itself when the thread |
174 |
|
// dies. |
175 |
} |
} |
176 |
|
|
177 |
void InstrumentResourceManager::OnSamplesToBeRemoved(std::set<void*> Samples, InstrumentEditor* pSender) { |
void InstrumentResourceManager::OnSamplesToBeRemoved(std::set<void*> Samples, InstrumentEditor* pSender) { |