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

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

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

revision 879 by schoenebeck, Mon May 9 14:25:09 2005 UTC revision 880 by schoenebeck, Tue Jun 27 22:57:37 2006 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 Christian Schoenebeck                              *   *   Copyright (C) 2005, 2006 Christian Schoenebeck                        *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program 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 33  namespace LinuxSampler { Line 33  namespace LinuxSampler {
33          InitWithDefault(); // use default card          InitWithDefault(); // use default card
34      }      }
35    
36      AudioOutputDeviceAlsa::ParameterCard::ParameterCard(String s) throw (LinuxSamplerException) : DeviceCreationParameterString(s) {      AudioOutputDeviceAlsa::ParameterCard::ParameterCard(String s) throw (Exception) : DeviceCreationParameterString(s) {
37      }      }
38    
39      String AudioOutputDeviceAlsa::ParameterCard::Description() {      String AudioOutputDeviceAlsa::ParameterCard::Description() {
# Line 54  namespace LinuxSampler { Line 54  namespace LinuxSampler {
54    
55      optional<String> AudioOutputDeviceAlsa::ParameterCard::DefaultAsString(std::map<String,String> Parameters) {      optional<String> AudioOutputDeviceAlsa::ParameterCard::DefaultAsString(std::map<String,String> Parameters) {
56          std::vector<String> cards = PossibilitiesAsString(Parameters);          std::vector<String> cards = PossibilitiesAsString(Parameters);
57          if (cards.empty()) throw LinuxSamplerException("AudioOutputDeviceAlsa: Can't find any card");          if (cards.empty()) throw Exception("AudioOutputDeviceAlsa: Can't find any card");
58          return cards[0]; // first card by default          return cards[0]; // first card by default
59      }      }
60    
# Line 86  namespace LinuxSampler { Line 86  namespace LinuxSampler {
86          return CardNames;          return CardNames;
87      }      }
88    
89      void AudioOutputDeviceAlsa::ParameterCard::OnSetValue(String s) throw (LinuxSamplerException) {      void AudioOutputDeviceAlsa::ParameterCard::OnSetValue(String s) throw (Exception) {
90          // not posssible, as parameter is fix          // not posssible, as parameter is fix
91      }      }
92    
# Line 103  namespace LinuxSampler { Line 103  namespace LinuxSampler {
103          InitWithDefault();          InitWithDefault();
104      }      }
105    
106      AudioOutputDeviceAlsa::ParameterFragments::ParameterFragments(String s) throw (LinuxSamplerException) : DeviceCreationParameterInt(s) {      AudioOutputDeviceAlsa::ParameterFragments::ParameterFragments(String s) throw (Exception) : DeviceCreationParameterInt(s) {
107      }      }
108    
109      String AudioOutputDeviceAlsa::ParameterFragments::Description() {      String AudioOutputDeviceAlsa::ParameterFragments::Description() {
# Line 179  namespace LinuxSampler { Line 179  namespace LinuxSampler {
179          return std::vector<int>();          return std::vector<int>();
180      }      }
181    
182      void AudioOutputDeviceAlsa::ParameterFragments::OnSetValue(int i) throw (LinuxSamplerException) {      void AudioOutputDeviceAlsa::ParameterFragments::OnSetValue(int i) throw (Exception) {
183          // not posssible, as parameter is fix          // not posssible, as parameter is fix
184      }      }
185    
# Line 196  namespace LinuxSampler { Line 196  namespace LinuxSampler {
196          InitWithDefault();          InitWithDefault();
197      }      }
198    
199      AudioOutputDeviceAlsa::ParameterFragmentSize::ParameterFragmentSize(String s) throw (LinuxSamplerException) : DeviceCreationParameterInt(s) {      AudioOutputDeviceAlsa::ParameterFragmentSize::ParameterFragmentSize(String s) throw (Exception) : DeviceCreationParameterInt(s) {
200      }      }
201    
202      String AudioOutputDeviceAlsa::ParameterFragmentSize::Description() {      String AudioOutputDeviceAlsa::ParameterFragmentSize::Description() {
# Line 272  namespace LinuxSampler { Line 272  namespace LinuxSampler {
272          return std::vector<int>();          return std::vector<int>();
273      }      }
274    
275      void AudioOutputDeviceAlsa::ParameterFragmentSize::OnSetValue(int i) throw (LinuxSamplerException) {      void AudioOutputDeviceAlsa::ParameterFragmentSize::OnSetValue(int i) throw (Exception) {
276          // not posssible, as parameter is fix          // not posssible, as parameter is fix
277      }      }
278    
# Line 517  namespace LinuxSampler { Line 517  namespace LinuxSampler {
517      }      }
518    
519      String AudioOutputDeviceAlsa::Version() {      String AudioOutputDeviceAlsa::Version() {
520         String s = "$Revision: 1.20 $";         String s = "$Revision: 1.21 $";
521         return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword         return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword
522      }      }
523    

Legend:
Removed from v.879  
changed lines
  Added in v.880

  ViewVC Help
Powered by ViewVC