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

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

revision 1279 by stargo, Sun Oct 1 14:03:43 2006 UTC revision 1302 by ossman_, Thu Oct 26 09:47:17 2006 UTC
# Line 50  sun_open(void) Line 50  sun_open(void)
50          /* Non-blocking so that user interface is responsive */          /* Non-blocking so that user interface is responsive */
51          fcntl(g_dsp_fd, F_SETFL, fcntl(g_dsp_fd, F_GETFL) | O_NONBLOCK);          fcntl(g_dsp_fd, F_SETFL, fcntl(g_dsp_fd, F_GETFL) | O_NONBLOCK);
52    
         rdpsnd_queue_init();  
53          g_reopened = True;          g_reopened = True;
54    
55          return True;          return True;
# Line 235  sun_play(void) Line 234  sun_play(void)
234                                  samplecnt += numsamples;                                  samplecnt += numsamples;
235                                  /* We need to add 50 to tell windows that time has passed while                                  /* We need to add 50 to tell windows that time has passed while
236                                   * playing this packet */                                   * playing this packet */
237                                  rdpsnd_send_completion(packet->tick + 50, packet->index);                                  rdpsnd_queue_next(50);
                                 rdpsnd_queue_next();  
238                                  sentcompletion = True;                                  sentcompletion = True;
239                          }                          }
240                          else                          else
# Line 253  sun_register(char *options) Line 251  sun_register(char *options)
251  {  {
252          static struct audio_driver sun_driver;          static struct audio_driver sun_driver;
253    
         sun_driver.wave_out_write = rdpsnd_queue_write;  
254          sun_driver.wave_out_open = sun_open;          sun_driver.wave_out_open = sun_open;
255          sun_driver.wave_out_close = sun_close;          sun_driver.wave_out_close = sun_close;
256          sun_driver.wave_out_format_supported = sun_format_supported;          sun_driver.wave_out_format_supported = sun_format_supported;

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

  ViewVC Help
Powered by ViewVC 1.1.26