oss: use other sync macro
authornotaz <notasas@gmail.com>
Fri, 28 Aug 2015 22:18:03 +0000 (01:18 +0300)
committernotaz <notasas@gmail.com>
Fri, 28 Aug 2015 22:20:17 +0000 (01:20 +0300)
for compatibility with OSSv4

linux/sndout_oss.c

index 2ac91c4..e10d96a 100644 (file)
@@ -51,7 +51,7 @@ void sndout_oss_stop(void)
                return;
 
        // sync causes trouble on Caanoo..
-       //ioctl(sounddev, SOUND_PCM_SYNC, 0);
+       //ioctl(sounddev, SNDCTL_DSP_SYNC, 0);
 
        close(sounddev);
        sounddev = -1;
@@ -178,7 +178,7 @@ int sndout_oss_can_write(int bytes)
 void sndout_oss_wait(void)
 {
        // FIXME?
-       ioctl(sounddev, SOUND_PCM_SYNC, 0);
+       ioctl(sounddev, SNDCTL_DSP_SYNC, 0);
 }
 
 void sndout_oss_setvol(int l, int r)