/[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 1432 by ossman_, Fri Feb 8 10:36:28 2008 UTC revision 1433 by ossman_, Fri Feb 8 10:40:56 2008 UTC
# Line 307  sun_set_format(RD_WAVEFORMATEX * pwfx) Line 307  sun_set_format(RD_WAVEFORMATEX * pwfx)
307          sun_pause();          sun_pause();
308    
309          if (pwfx->wBitsPerSample == 8)          if (pwfx->wBitsPerSample == 8)
310          {                  format = AUDIO_ENCODING_LINEAR8;
                 info.play.encoding = AUDIO_ENCODING_LINEAR8;  
         }  
311          else if (pwfx->wBitsPerSample == 16)          else if (pwfx->wBitsPerSample == 16)
312          {                  format = AUDIO_ENCODING_LINEAR;
                 info.play.encoding = AUDIO_ENCODING_LINEAR;  
         }  
313    
314          samplewidth = pwfx->wBitsPerSample / 8;          samplewidth = pwfx->wBitsPerSample / 8;
315    
316          if (pwfx->nChannels == 1)          if (pwfx->nChannels == 1)
317          {          {
318                  info.play.channels = 1;                  info.play.channels = 1;
319                    stereo = 0;
320          }          }
321          else if (pwfx->nChannels == 2)          else if (pwfx->nChannels == 2)
322          {          {
323                  info.play.channels = 2;                  info.play.channels = 2;
324                    stereo = 1;
325                  samplewidth *= 2;                  samplewidth *= 2;
326          }          }
327    
# Line 331  sun_set_format(RD_WAVEFORMATEX * pwfx) Line 329  sun_set_format(RD_WAVEFORMATEX * pwfx)
329    
330          info.play.sample_rate = pwfx->nSamplesPerSec;          info.play.sample_rate = pwfx->nSamplesPerSec;
331          info.play.precision = pwfx->wBitsPerSample;          info.play.precision = pwfx->wBitsPerSample;
332            info.play.encoding = format;
333          info.play.samples = 0;          info.play.samples = 0;
334          info.play.eof = 0;          info.play.eof = 0;
335          info.play.error = 0;          info.play.error = 0;

Legend:
Removed from v.1432  
changed lines
  Added in v.1433

  ViewVC Help
Powered by ViewVC 1.1.26