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 - 2013 Christian Schoenebeck * |
* Copyright (C) 2005 - 2014 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 * |
118 |
static String Name(); |
static String Name(); |
119 |
}; |
}; |
120 |
|
|
121 |
|
/** Audio Device Parameter 'SAMPLERATE' |
122 |
|
* |
123 |
|
* Used to retrieve the sample rate of the JACK audio output |
124 |
|
* device. Even though the sample rate of the JACK server might |
125 |
|
* change during runtime, the JACK API currently however does not |
126 |
|
* allow clients to change the sample rate. So this parameter is |
127 |
|
* read only. |
128 |
|
* |
129 |
|
* This base parameter class has just been overridden for this JACK |
130 |
|
* driver to implement a valid default value for sample rate. The |
131 |
|
* default value will simply return the sample rate of the currently |
132 |
|
* running JACK server. It will return "nothing" if the JACK server |
133 |
|
* is not running at that point. |
134 |
|
*/ |
135 |
|
class ParameterSampleRate : AudioOutputDevice::ParameterSampleRate { |
136 |
|
public: |
137 |
|
ParameterSampleRate(); |
138 |
|
ParameterSampleRate(String s); |
139 |
|
virtual optional<int> DefaultAsInt(std::map<String,String> Parameters) OVERRIDE; |
140 |
|
virtual void OnSetValue(int i) throw (Exception) OVERRIDE; |
141 |
|
}; |
142 |
|
|
143 |
// derived abstract methods from class 'AudioOutputDevice' |
// derived abstract methods from class 'AudioOutputDevice' |
144 |
virtual void Play() OVERRIDE; |
virtual void Play() OVERRIDE; |
145 |
virtual bool IsPlaying() OVERRIDE; |
virtual bool IsPlaying() OVERRIDE; |