/[svn]/linuxsampler/trunk/src/Sampler.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/Sampler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 835 by persson, Mon Feb 6 18:07:17 2006 UTC revision 837 by persson, Thu Feb 9 20:03:03 2006 UTC
# Line 307  namespace LinuxSampler { Line 307  namespace LinuxSampler {
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) {
# Line 326  namespace LinuxSampler { Line 329  namespace LinuxSampler {
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) {

Legend:
Removed from v.835  
changed lines
  Added in v.837

  ViewVC Help
Powered by ViewVC