25 |
|
|
26 |
#include "Sampler.h" |
#include "Sampler.h" |
27 |
|
|
28 |
|
#include "engines/EngineFactory.h" |
29 |
#include "engines/EngineChannelFactory.h" |
#include "engines/EngineChannelFactory.h" |
30 |
#include "drivers/audio/AudioOutputDeviceFactory.h" |
#include "drivers/audio/AudioOutputDeviceFactory.h" |
31 |
#include "drivers/midi/MidiInputDeviceFactory.h" |
#include "drivers/midi/MidiInputDeviceFactory.h" |
351 |
return pDevice; |
return pDevice; |
352 |
} |
} |
353 |
|
|
354 |
|
int Sampler::GetVoiceCount() { |
355 |
|
int count = 0; |
356 |
|
std::set<Engine*>::iterator it = EngineFactory::EngineInstances().begin(); |
357 |
|
|
358 |
|
for(; it != EngineFactory::EngineInstances().end(); it++) { |
359 |
|
count += (*it)->VoiceCount(); |
360 |
|
} |
361 |
|
|
362 |
|
return count; |
363 |
|
} |
364 |
|
|
365 |
void Sampler::Reset() { |
void Sampler::Reset() { |
366 |
// delete sampler channels |
// delete sampler channels |
367 |
try { |
try { |