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 * |
56 |
return true; |
return true; |
57 |
} |
} |
58 |
|
|
59 |
void AudioOutputDevice::ParameterActive::OnSetValue(bool b) throw (LinuxSamplerException) { |
void AudioOutputDevice::ParameterActive::OnSetValue(bool b) throw (Exception) { |
60 |
if (b) ((AudioOutputDevice*)pDevice)->Play(); |
if (b) ((AudioOutputDevice*)pDevice)->Play(); |
61 |
else ((AudioOutputDevice*)pDevice)->Stop(); |
else ((AudioOutputDevice*)pDevice)->Stop(); |
62 |
} |
} |
109 |
return std::vector<int>(); |
return std::vector<int>(); |
110 |
} |
} |
111 |
|
|
112 |
void AudioOutputDevice::ParameterSampleRate::OnSetValue(int i) throw (LinuxSamplerException) { |
void AudioOutputDevice::ParameterSampleRate::OnSetValue(int i) throw (Exception) { |
113 |
/* cannot happen, as parameter is fix */ |
/* cannot happen, as parameter is fix */ |
114 |
} |
} |
115 |
|
|
161 |
return std::vector<int>(); |
return std::vector<int>(); |
162 |
} |
} |
163 |
|
|
164 |
void AudioOutputDevice::ParameterChannels::OnSetValue(int i) throw (LinuxSamplerException) { |
void AudioOutputDevice::ParameterChannels::OnSetValue(int i) throw (Exception) { |
165 |
((AudioOutputDevice*)pDevice)->AcquireChannels(i); |
((AudioOutputDevice*)pDevice)->AcquireChannels(i); |
166 |
} |
} |
167 |
|
|