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 * |
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() { |
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 |
|
|
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 |
|
|
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() { |
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 |
|
|
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() { |
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 |
|
|
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 |
|
|