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

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

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

revision 1748 by persson, Sun Jun 22 14:46:46 2008 UTC revision 1764 by persson, Sat Sep 6 14:55:18 2008 UTC
# Line 202  namespace LinuxSampler { Line 202  namespace LinuxSampler {
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() {
# Line 249  namespace LinuxSampler { Line 252  namespace LinuxSampler {
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    

Legend:
Removed from v.1748  
changed lines
  Added in v.1764

  ViewVC Help
Powered by ViewVC