/[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 510 by stargo, Thu Oct 23 11:11:31 2003 UTC revision 559 by stargo, Thu Dec 11 12:25:38 2003 UTC
# Line 26  Line 26 
26  #include <errno.h>  #include <errno.h>
27  #include <sys/ioctl.h>  #include <sys/ioctl.h>
28  #include <sys/audioio.h>  #include <sys/audioio.h>
 #include <stropts.h>  
29    
30  #define MAX_QUEUE       10  #define MAX_QUEUE       10
31    
# Line 80  wave_out_close(void) Line 79  wave_out_close(void)
79                  queue_lo = (queue_lo + 1) % MAX_QUEUE;                  queue_lo = (queue_lo + 1) % MAX_QUEUE;
80          }          }
81    
82    #if defined I_FLUSH && defined FLUSHW
83          /* Flush the audiobuffer */          /* Flush the audiobuffer */
84          ioctl(g_dsp_fd, I_FLUSH, FLUSHW);          ioctl(g_dsp_fd, I_FLUSH, FLUSHW);
85    #endif
86          close(g_dsp_fd);          close(g_dsp_fd);
87  }  }
88    
# Line 124  wave_out_set_format(WAVEFORMATEX * pwfx) Line 125  wave_out_set_format(WAVEFORMATEX * pwfx)
125    
126          if (pwfx->nChannels == 1)          if (pwfx->nChannels == 1)
127          {          {
128                  info.play.channels = AUDIO_CHANNELS_MONO;                  info.play.channels = 1;
129          }          }
130          else if (pwfx->nChannels == 2)          else if (pwfx->nChannels == 2)
131          {          {
132                  info.play.channels = AUDIO_CHANNELS_STEREO;                  info.play.channels = 2;
133                  g_samplewidth *= 2;                  g_samplewidth *= 2;
134          }          }
135    

Legend:
Removed from v.510  
changed lines
  Added in v.559

  ViewVC Help
Powered by ViewVC 1.1.26