From: notaz Date: Fri, 28 Aug 2015 22:18:03 +0000 (+0300) Subject: oss: use other sync macro X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=commitdiff_plain;h=0415ebf191d0d277d1dfba1bebe6f051a5fc89a8;hp=26ea18173c1228dd5ce39e2a88ffe1ae10fcb365 oss: use other sync macro for compatibility with OSSv4 --- 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)