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