307 |
// disable device |
// disable device |
308 |
pDevice->Stop(); |
pDevice->Stop(); |
309 |
|
|
|
// remove device from the device list |
|
|
mAudioOutputDevices.erase(iter); |
|
|
|
|
310 |
// destroy and free device from memory |
// destroy and free device from memory |
311 |
delete pDevice; |
delete pDevice; |
312 |
} |
} |
313 |
} |
} |
314 |
|
// remove devices from the device list |
315 |
|
mAudioOutputDevices.clear(); |
316 |
} |
} |
317 |
|
|
318 |
void Sampler::DestroyMidiInputDevice(MidiInputDevice* pDevice) throw (LinuxSamplerException) { |
void Sampler::DestroyMidiInputDevice(MidiInputDevice* pDevice) throw (LinuxSamplerException) { |
326 |
// disable device |
// disable device |
327 |
pDevice->StopListen(); |
pDevice->StopListen(); |
328 |
|
|
|
// remove device from the device list |
|
|
mMidiInputDevices.erase(iter); |
|
|
|
|
329 |
// destroy and free device from memory |
// destroy and free device from memory |
330 |
delete pDevice; |
delete pDevice; |
331 |
} |
} |
332 |
} |
} |
333 |
|
// remove devices from the device list |
334 |
|
mMidiInputDevices.clear(); |
335 |
} |
} |
336 |
|
|
337 |
MidiInputDevice* Sampler::CreateMidiInputDevice(String MidiDriver, std::map<String,String> Parameters) throw (LinuxSamplerException) { |
MidiInputDevice* Sampler::CreateMidiInputDevice(String MidiDriver, std::map<String,String> Parameters) throw (LinuxSamplerException) { |