/[svn]/linuxsampler/trunk/src/drivers/audio/AudioOutputDeviceFactory.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/audio/AudioOutputDeviceFactory.cpp

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

revision 1888 by iliev, Mon Feb 16 17:56:50 2009 UTC revision 1889 by persson, Sun Apr 26 12:19:00 2009 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005 - 2007 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2009 Christian Schoenebeck                       *
7   *                                                                         *   *                                                                         *
8   *   This library is free software; you can redistribute it and/or modify  *   *   This library is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 175  namespace LinuxSampler { Line 175  namespace LinuxSampler {
175          return InnerFactories[DriverName]->Version();          return InnerFactories[DriverName]->Version();
176      }      }
177    
178        void AudioOutputDeviceFactory::Unregister(String DriverName) {
179            std::map<String, InnerFactory*>::iterator iter = InnerFactories.find(DriverName);
180            if (iter != InnerFactories.end()) {
181                delete iter->second;
182                InnerFactories.erase(iter);
183            }
184    
185            std::map<String, DeviceParameterFactory*>::iterator iterpf = ParameterFactories.find(DriverName);
186            if (iterpf != ParameterFactories.end()) {
187                delete iterpf->second;
188                ParameterFactories.erase(iterpf);
189            }
190        }
191    
192  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.1888  
changed lines
  Added in v.1889

  ViewVC Help
Powered by ViewVC