home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 November / PCONLINE_11_99.ISO / filesbbs / OS2 / CDR18A24.ZIP / source / sndconfig.h.diff < prev   
Encoding:
Text File  |  1999-08-22  |  1.1 KB  |  54 lines

  1. *** d:/os2/tmp/sndconfig.c_a00026    Sun Aug 22 11:01:26 1999
  2. --- d:/os2/tmp/sndconfig.c_b00026    Sun Aug 22 11:01:26 1999
  3. ***************
  4. *** 256,262 ****
  5.   int open_snd_device (devicename)
  6.       const char *devicename;
  7.   {
  8. ! #if    !defined __CYGWIN32__
  9.       return (global.soundcard_fd = open(snd_device, O_WRONLY, 0)) < 0;
  10.   #else
  11.       return 0;
  12. --- 256,262 ----
  13.   int open_snd_device (devicename)
  14.       const char *devicename;
  15.   {
  16. ! #if    !defined __CYGWIN32__ && !defined __EMX__
  17.       return (global.soundcard_fd = open(snd_device, O_WRONLY, 0)) < 0;
  18.   #else
  19.       return 0;
  20. ***************
  21. *** 270,276 ****
  22. --- 270,280 ----
  23.    waveOutReset(0);
  24.    return waveOutClose(DeviceID);
  25.   #else
  26. + #if !defined  __EMX__
  27.    return close(global.soundcard_fd);
  28. + #else
  29. +   return 0;
  30. + #endif
  31.   #endif
  32.   }
  33.   
  34. ***************
  35. *** 283,288 ****
  36. --- 287,293 ----
  37.       unsigned todo;
  38.   {
  39.       int result = 0;
  40. + #if !defined __EMX__
  41.   #if    defined __CYGWIN32__
  42.       MMRESULT mmres;
  43.   
  44. ***************
  45. *** 346,351 ****
  46. --- 351,357 ----
  47.       } while (todo > 0);
  48.   outside_loop:
  49.       ;
  50. + #endif
  51.   #endif
  52.       return result;
  53.   }
  54.