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

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

revision 909 by astrand, Tue Jun 7 11:10:13 2005 UTC revision 1032 by astrand, Fri Dec 16 07:48:02 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 - SGI/IRIX     Sound Channel Process Functions - SGI/IRIX
4     Copyright (C) Matthew Chapman 2003     Copyright (C) Matthew Chapman 2003
5     Copyright (C) GuoJunBo guojunbo@ict.ac.cn 2003     Copyright (C) GuoJunBo guojunbo@ict.ac.cn 2003
6     Copyright (C) Jeremy Meng voidfoo@cwazy.co.uk 2004     Copyright (C) Jeremy Meng void.foo@gmail.com 2004, 2005
7    
8     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
9     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 24  Line 24 
24  #include <errno.h>  #include <errno.h>
25  #include <dmedia/audio.h>  #include <dmedia/audio.h>
26    
27  #define IRIX_DEBUG 1  /* #define IRIX_DEBUG 1 */
28    
29  #define IRIX_MAX_VOL     65535  #define IRIX_MAX_VOL     65535
30    
# Line 77  wave_out_open(void) Line 77  wave_out_open(void)
77          queue_lo = queue_hi = 0;          queue_lo = queue_hi = 0;
78    
79          audioconfig = alNewConfig();          audioconfig = alNewConfig();
80          if (audioconfig < 0)          if (audioconfig == (ALconfig) 0)
81          {          {
82                  fprintf(stderr, "wave_out_open: alNewConfig failed: %s\n",                  fprintf(stderr, "wave_out_open: alNewConfig failed: %s\n",
83                          alGetErrorString(oserror()));                          alGetErrorString(oserror()));
# Line 159  wave_out_set_format(WAVEFORMATEX * pwfx) Line 159  wave_out_set_format(WAVEFORMATEX * pwfx)
159  #endif  #endif
160          }          }
161    
162          /* Limited support to configure an opened audio port in IRIX The          /* Limited support to configure an opened audio port in IRIX.  The
163             number of channels is a static setting and can not be changed after             number of channels is a static setting and can not be changed after
164             a port is opened. So if the number of channels remains the same, we             a port is opened.  So if the number of channels remains the same, we
165             can configure other settings Otherwise we have to reopen the audio             can configure other settings; otherwise we have to reopen the audio
166             port, using same config. */             port, using same config. */
167    
168          channels = pwfx->nChannels;          channels = pwfx->nChannels;
# Line 332  wave_out_play(void) Line 332  wave_out_play(void)
332  /*                              fprintf(stderr,"Busy playing...\n"); */  /*                              fprintf(stderr,"Busy playing...\n"); */
333  #endif  #endif
334                                  g_dsp_busy = True;                                  g_dsp_busy = True;
335                                    usleep(10);
336                                  return;                                  return;
337                          }                          }
338                  }                  }

Legend:
Removed from v.909  
changed lines
  Added in v.1032

  ViewVC Help
Powered by ViewVC 1.1.26