/[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 1372 by jsorg71, Mon Jan 8 04:47:06 2007 UTC revision 1382 by jsorg71, Thu Jan 18 05:42:11 2007 UTC
# Line 64  unsigned int queue_hi, queue_lo, queue_p Line 64  unsigned int queue_hi, queue_lo, queue_p
64  struct audio_packet packet_queue[MAX_QUEUE];  struct audio_packet packet_queue[MAX_QUEUE];
65    
66  static char record_buffer[8192];  static char record_buffer[8192];
67  static int record_buffer_size;  static uint32 record_buffer_size;
68    
69  static uint8 packet_opcode;  static uint8 packet_opcode;
70  static struct stream packet;  static struct stream packet;
# Line 153  rdpsnd_flush_record(void) Line 153  rdpsnd_flush_record(void)
153  void  void
154  rdpsnd_record(const void *data, unsigned int size)  rdpsnd_record(const void *data, unsigned int size)
155  {  {
156          int remain;          uint32 remain;
157    
158          assert(rec_device_open);          assert(rec_device_open);
159    
# Line 610  rdpsnddbg_process(STREAM s) Line 610  rdpsnddbg_process(STREAM s)
610    
611          pkglen = s->end - s->p;          pkglen = s->end - s->p;
612          /* str_handle_lines requires null terminated strings */          /* str_handle_lines requires null terminated strings */
613          buf = xmalloc(pkglen + 1);          buf = (char *) xmalloc(pkglen + 1);
614          STRNCPY(buf, (char *) s->p, pkglen + 1);          STRNCPY(buf, (char *) s->p, pkglen + 1);
615    
616          str_handle_lines(buf, &rest, rdpsnddbg_line_handler, NULL);          str_handle_lines(buf, &rest, rdpsnddbg_line_handler, NULL);
# Line 662  rdpsnd_init(char *optarg) Line 662  rdpsnd_init(char *optarg)
662    
663          drivers = NULL;          drivers = NULL;
664    
665          packet.data = xmalloc(65536);          packet.data = (uint8 *) xmalloc(65536);
666          packet.p = packet.end = packet.data;          packet.p = packet.end = packet.data;
667          packet.size = 0;          packet.size = 0;
668    

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

  ViewVC Help
Powered by ViewVC 1.1.26