From 0415ebf191d0d277d1dfba1bebe6f051a5fc89a8 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 29 Aug 2015 01:18:03 +0300 Subject: [PATCH] oss: use other sync macro for compatibility with OSSv4 --- linux/sndout_oss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/sndout_oss.c b/linux/sndout_oss.c index 2ac91c4..e10d96a 100644 --- a/linux/sndout_oss.c +++ b/linux/sndout_oss.c @@ -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) -- 2.39.2