/[rdesktop]/sourceforge.net/rdesktop/trunk/rdpsnd.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/rdesktop/trunk/rdpsnd.c

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

revision 1298 by ossman_, Thu Oct 19 11:27:40 2006 UTC revision 1299 by ossman_, Thu Oct 19 11:28:53 2006 UTC
# Line 423  rdpsnd_play(void) Line 423  rdpsnd_play(void)
423          current_driver->wave_out_play();          current_driver->wave_out_play();
424  }  }
425    
426  inline void  void
427  rdpsnd_queue_write(STREAM s, uint16 tick, uint8 index)  rdpsnd_queue_write(STREAM s, uint16 tick, uint8 index)
428  {  {
429          struct audio_packet *packet = &packet_queue[queue_hi];          struct audio_packet *packet = &packet_queue[queue_hi];
# Line 445  rdpsnd_queue_write(STREAM s, uint16 tick Line 445  rdpsnd_queue_write(STREAM s, uint16 tick
445                  current_driver->wave_out_play();                  current_driver->wave_out_play();
446  }  }
447    
448  inline struct audio_packet *  struct audio_packet *
449  rdpsnd_queue_current_packet(void)  rdpsnd_queue_current_packet(void)
450  {  {
451          return &packet_queue[queue_lo];          return &packet_queue[queue_lo];
452  }  }
453    
454  inline BOOL  BOOL
455  rdpsnd_queue_empty(void)  rdpsnd_queue_empty(void)
456  {  {
457          return (queue_lo == queue_hi);          return (queue_lo == queue_hi);
458  }  }
459    
460  inline void  void
461  rdpsnd_queue_init(void)  rdpsnd_queue_init(void)
462  {  {
463          queue_lo = queue_hi = 0;          queue_lo = queue_hi = 0;
464  }  }
465    
466  inline void  void
467  rdpsnd_queue_next(void)  rdpsnd_queue_next(void)
468  {  {
469          xfree(packet_queue[queue_lo].s.data);          xfree(packet_queue[queue_lo].s.data);
470          queue_lo = (queue_lo + 1) % MAX_QUEUE;          queue_lo = (queue_lo + 1) % MAX_QUEUE;
471  }  }
472    
473  inline int  int
474  rdpsnd_queue_next_tick(void)  rdpsnd_queue_next_tick(void)
475  {  {
476          if (((queue_lo + 1) % MAX_QUEUE) != queue_hi)          if (((queue_lo + 1) % MAX_QUEUE) != queue_hi)

Legend:
Removed from v.1298  
changed lines
  Added in v.1299

  ViewVC Help
Powered by ViewVC 1.1.26