/[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 694 by stargo, Fri May 7 12:01:53 2004 UTC revision 963 by astrand, Wed Aug 3 10:56:16 2005 UTC
# Line 1  Line 1 
1  /*  /* -*- c-basic-offset: 8 -*-
2     rdesktop: A Remote Desktop Protocol client.     rdesktop: A Remote Desktop Protocol client.
3     Sound Channel Process Functions - Sun     Sound Channel Process Functions - Sun
4     Copyright (C) Matthew Chapman 2003     Copyright (C) Matthew Chapman 2003
# Line 54  wave_out_open(void) Line 54  wave_out_open(void)
54    
55          if (dsp_dev == NULL)          if (dsp_dev == NULL)
56          {          {
57                  dsp_dev = "/dev/audio";                  dsp_dev = strdup("/dev/audio");
58          }          }
59    
60          if ((g_dsp_fd = open(dsp_dev, O_WRONLY | O_NONBLOCK)) == -1)          if ((g_dsp_fd = open(dsp_dev, O_WRONLY | O_NONBLOCK)) == -1)
# Line 167  wave_out_volume(uint16 left, uint16 righ Line 167  wave_out_volume(uint16 left, uint16 righ
167          uint balance;          uint balance;
168          uint volume;          uint volume;
169    
170          if (ioctl(g_dsp_fd, AUDIO_GETINFO, &info) == -1)          AUDIO_INITINFO(&info);
         {  
                 perror("AUDIO_GETINFO");  
                 return;  
         }  
171    
172          volume = (left > right) ? left : right;          volume = (left > right) ? left : right;
173    

Legend:
Removed from v.694  
changed lines
  Added in v.963

  ViewVC Help
Powered by ViewVC 1.1.26