/[qemu]/qemu/audio/ossaudio.c
ViewVC logotype

Diff of /qemu/audio/ossaudio.c

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

revision 1.2 by bellard, Tue Nov 9 23:08:30 2004 UTC revision 1.3 by bellard, Thu Nov 11 16:55:09 2004 UTC
# Line 40  typedef struct OSSVoice { Line 40  typedef struct OSSVoice {
40      int old_optr;      int old_optr;
41  } OSSVoice;  } OSSVoice;
42    
   
43  #define dolog(...) AUD_log ("oss", __VA_ARGS__)  #define dolog(...) AUD_log ("oss", __VA_ARGS__)
44  #ifdef DEBUG  #ifdef DEBUG
45  #define ldebug(...) dolog (__VA_ARGS__)  #define ldebug(...) dolog (__VA_ARGS__)
# Line 371  static int oss_hw_init (HWVoice *hw, int Line 370  static int oss_hw_init (HWVoice *hw, int
370          if (oss->pcm_buf == MAP_FAILED) {          if (oss->pcm_buf == MAP_FAILED) {
371              dolog ("Failed to mmap OSS device\nReason: %s\n",              dolog ("Failed to mmap OSS device\nReason: %s\n",
372                     errstr ());                     errstr ());
373          }          } else for (;;) {
   
         for (;;) {  
374              int err;              int err;
375              int trig = 0;              int trig = 0;
376              if (ioctl (oss->fd, SNDCTL_DSP_SETTRIGGER, &trig) < 0) {              if (ioctl (oss->fd, SNDCTL_DSP_SETTRIGGER, &trig) < 0) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26