/[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 1359 by ossman_, Tue Jan 2 16:30:06 2007 UTC revision 1372 by jsorg71, Mon Jan 8 04:47:06 2007 UTC
# Line 1  Line 1 
1  /* -*- c-basic-offset: 8 -*-  /* -*- c-basic-offset: 8 -*-
2     rdesktop: A Remote Desktop Protocol client.     rdesktop: A Remote Desktop Protocol client.
3     Sound Channel Process Functions     Sound Channel Process Functions
4     Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB     Copyright 2006-2007 Pierre Ossman <ossman@cendio.se> for Cendio AB
5     Copyright (C) Matthew Chapman 2003     Copyright (C) Matthew Chapman 2003-2007
6     Copyright (C) GuoJunBo guojunbo@ict.ac.cn 2003     Copyright (C) GuoJunBo guojunbo@ict.ac.cn 2003
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
# Line 50  static VCHANNEL *rdpsnddbg_channel; Line 50  static VCHANNEL *rdpsnddbg_channel;
50  static struct audio_driver *drivers = NULL;  static struct audio_driver *drivers = NULL;
51  struct audio_driver *current_driver = NULL;  struct audio_driver *current_driver = NULL;
52    
53  static BOOL device_open;  static RD_BOOL device_open;
54  static BOOL rec_device_open;  static RD_BOOL rec_device_open;
55    
56  static WAVEFORMATEX formats[MAX_FORMATS];  static RD_WAVEFORMATEX formats[MAX_FORMATS];
57  static unsigned int format_count;  static unsigned int format_count;
58  static unsigned int current_format;  static unsigned int current_format;
59    
60  static WAVEFORMATEX rec_formats[MAX_FORMATS];  static RD_WAVEFORMATEX rec_formats[MAX_FORMATS];
61  static unsigned int rec_format_count;  static unsigned int rec_format_count;
62    
63  unsigned int queue_hi, queue_lo, queue_pending;  unsigned int queue_hi, queue_lo, queue_pending;
# Line 178  rdpsnd_record(const void *data, unsigned Line 178  rdpsnd_record(const void *data, unsigned
178          }          }
179  }  }
180    
181  static BOOL  static RD_BOOL
182  rdpsnd_auto_select(void)  rdpsnd_auto_select(void)
183  {  {
184          static BOOL failed = False;          static RD_BOOL failed = False;
185    
186          if (!failed)          if (!failed)
187          {          {
# Line 212  rdpsnd_process_negotiate(STREAM in) Line 212  rdpsnd_process_negotiate(STREAM in)
212          uint16 in_format_count, i;          uint16 in_format_count, i;
213          uint8 pad;          uint8 pad;
214          uint16 version;          uint16 version;
215          WAVEFORMATEX *format;          RD_WAVEFORMATEX *format;
216          STREAM out;          STREAM out;
217          BOOL device_available = False;          RD_BOOL device_available = False;
218          int readcnt;          int readcnt;
219          int discardcnt;          int discardcnt;
220    
# Line 326  rdpsnd_process_rec_negotiate(STREAM in) Line 326  rdpsnd_process_rec_negotiate(STREAM in)
326  {  {
327          uint16 in_format_count, i;          uint16 in_format_count, i;
328          uint16 version;          uint16 version;
329          WAVEFORMATEX *format;          RD_WAVEFORMATEX *format;
330          STREAM out;          STREAM out;
331          BOOL device_available = False;          RD_BOOL device_available = False;
332          int readcnt;          int readcnt;
333          int discardcnt;          int discardcnt;
334    
# Line 592  rdpsnd_process(STREAM s) Line 592  rdpsnd_process(STREAM s)
592          }          }
593  }  }
594    
595  static BOOL  static RD_BOOL
596  rdpsnddbg_line_handler(const char *line, void *data)  rdpsnddbg_line_handler(const char *line, void *data)
597  {  {
598  #ifdef WITH_DEBUG_SOUND  #ifdef WITH_DEBUG_SOUND
# Line 654  rdpsnd_register_drivers(char *options) Line 654  rdpsnd_register_drivers(char *options)
654          *reg = NULL;          *reg = NULL;
655  }  }
656    
657  BOOL  RD_BOOL
658  rdpsnd_init(char *optarg)  rdpsnd_init(char *optarg)
659  {  {
660          struct audio_driver *pos;          struct audio_driver *pos;
# Line 791  rdpsnd_queue_current_packet(void) Line 791  rdpsnd_queue_current_packet(void)
791          return &packet_queue[queue_lo];          return &packet_queue[queue_lo];
792  }  }
793    
794  BOOL  RD_BOOL
795  rdpsnd_queue_empty(void)  rdpsnd_queue_empty(void)
796  {  {
797          return (queue_lo == queue_hi);          return (queue_lo == queue_hi);

Legend:
Removed from v.1359  
changed lines
  Added in v.1372

  ViewVC Help
Powered by ViewVC 1.1.26