/[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 1295 by stargo, Sat Oct 14 22:12:47 2006 UTC revision 1302 by ossman_, Thu Oct 26 09:47:17 2006 UTC
# Line 65  libao_open(void) Line 65  libao_open(void)
65          }          }
66    
67          g_dsp_fd = 0;          g_dsp_fd = 0;
         rdpsnd_queue_init();  
68    
69          reopened = True;          reopened = True;
70    
# Line 78  libao_close(void) Line 77  libao_close(void)
77          /* Ack all remaining packets */          /* Ack all remaining packets */
78          while (!rdpsnd_queue_empty())          while (!rdpsnd_queue_empty())
79          {          {
80                  rdpsnd_send_completion(rdpsnd_queue_current_packet()->tick,                  rdpsnd_queue_next(0);
                                        rdpsnd_queue_current_packet()->index);  
                 rdpsnd_queue_next();  
81          }          }
82    
83          if (o_device != NULL)          if (o_device != NULL)
# Line 171  libao_play(void) Line 168  libao_play(void)
168                                 (packet->tick + duration) % 65536, next_tick % 65536));                                 (packet->tick + duration) % 65536, next_tick % 65536));
169                  }                  }
170    
171                  rdpsnd_send_completion(((packet->tick + duration) % 65536), packet->index);                  rdpsnd_queue_next(duration);
                 rdpsnd_queue_next();  
172          }          }
173    
174          g_dsp_busy = 1;          g_dsp_busy = 1;
# Line 186  libao_register(char *options) Line 182  libao_register(char *options)
182          struct ao_info *libao_info;          struct ao_info *libao_info;
183          static char description[101];          static char description[101];
184    
         libao_driver.wave_out_write = rdpsnd_queue_write;  
185          libao_driver.wave_out_open = libao_open;          libao_driver.wave_out_open = libao_open;
186          libao_driver.wave_out_close = libao_close;          libao_driver.wave_out_close = libao_close;
187          libao_driver.wave_out_format_supported = rdpsnd_dsp_resample_supported;          libao_driver.wave_out_format_supported = rdpsnd_dsp_resample_supported;

Legend:
Removed from v.1295  
changed lines
  Added in v.1302

  ViewVC Help
Powered by ViewVC 1.1.26