/[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 778 by iliev, Fri Sep 23 06:58:26 2005 UTC revision 835 by persson, Mon Feb 6 18:07:17 2006 UTC
# Line 307  namespace LinuxSampler { Line 307  namespace LinuxSampler {
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) {
# Line 327  namespace LinuxSampler { Line 326  namespace LinuxSampler {
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) {

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

  ViewVC Help
Powered by ViewVC