202 |
* libjack to demand transmission of further sample points. |
* libjack to demand transmission of further sample points. |
203 |
*/ |
*/ |
204 |
int AudioOutputDeviceJack::Process(uint Samples) { |
int AudioOutputDeviceJack::Process(uint Samples) { |
205 |
|
int res; |
206 |
if (csIsPlaying.Pop()) { |
if (csIsPlaying.Pop()) { |
207 |
// let all connected engines render 'Samples' sample points |
// let all connected engines render 'Samples' sample points |
208 |
return RenderAudio(Samples); |
res = RenderAudio(Samples); |
209 |
} |
} |
210 |
else { |
else { |
211 |
// playback stop by zeroing output buffer(s) and not calling connected sampler engines to render audio |
// playback stop by zeroing output buffer(s) and not calling connected sampler engines to render audio |
212 |
return RenderSilence(Samples); |
res = RenderSilence(Samples); |
213 |
} |
} |
214 |
|
csIsPlaying.RttDone(); |
215 |
|
return res; |
216 |
} |
} |
217 |
|
|
218 |
void AudioOutputDeviceJack::Play() { |
void AudioOutputDeviceJack::Play() { |
252 |
} |
} |
253 |
|
|
254 |
String AudioOutputDeviceJack::Version() { |
String AudioOutputDeviceJack::Version() { |
255 |
String s = "$Revision: 1.24 $"; |
String s = "$Revision: 1.25 $"; |
256 |
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 |
257 |
} |
} |
258 |
|
|