/[rdesktop]/sourceforge.net/trunk/rdesktop/rdpsnd_libao.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdpsnd_libao.c

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

revision 1289 by stargo, Sun Oct 1 22:27:11 2006 UTC revision 1290 by stargo, Sun Oct 1 22:30:34 2006 UTC
# Line 29  Line 29 
29  #include <ao/ao.h>  #include <ao/ao.h>
30  #include <sys/time.h>  #include <sys/time.h>
31    
32  #define WAVEOUTBUF      512  #define WAVEOUTLEN      1024
33    
34  static ao_device *o_device = NULL;  static ao_device *o_device = NULL;
35  static int default_driver;  static int default_driver;
# Line 148  libao_play(void) Line 148  libao_play(void)
148    
149          next_tick = rdpsnd_queue_next_tick();          next_tick = rdpsnd_queue_next_tick();
150    
151          len = (WAVEOUTBUF > (out->end - out->p)) ? (out->end - out->p) : WAVEOUTBUF;          len = (WAVEOUTLEN > (out->end - out->p)) ? (out->end - out->p) : WAVEOUTLEN;
152          ao_play(o_device, (char *) out->p, len);          ao_play(o_device, (char *) out->p, len);
153          out->p += len;          out->p += len;
154    

Legend:
Removed from v.1289  
changed lines
  Added in v.1290

  ViewVC Help
Powered by ViewVC 1.1.26