# HG changeset patch # User Cristi Magherusan # Date 1196854516 -7200 # Node ID b461d608befefca24330451d25e71a609467d406 # Parent 43da009d6e76af150c2325aef33348f960573077 replaced SNDCTL_DSP_RESET with SNDCTL_DSP_SYNC, as suggested by Michal diff -r 43da009d6e76 -r b461d608befe src/OSS4/audio.c --- a/src/OSS4/audio.c Mon Dec 03 18:50:19 2007 +0900 +++ b/src/OSS4/audio.c Wed Dec 05 13:35:16 2007 +0200 @@ -502,7 +502,7 @@ * soundcard, but not yet played. I don't * think this is worth fixing. */ - ioctl(fd, SNDCTL_DSP_RESET, 0); + ioctl(fd, SNDCTL_DSP_SYNC, 0); } else if (unpause && paused) { unpause = FALSE; @@ -519,7 +519,7 @@ * the driver to get fucked up by a reset */ - ioctl(fd, SNDCTL_DSP_RESET, 0); + ioctl(fd, SNDCTL_DSP_SYNC, 0); close(fd); fd = open(device_name, O_WRONLY); oss_set_audio_params(); @@ -532,7 +532,7 @@ } - ioctl(fd, SNDCTL_DSP_RESET, 0); + ioctl(fd, SNDCTL_DSP_SYNC, 0); close(fd); g_free(buffer); return NULL; @@ -545,7 +545,7 @@ struct timeval tv; fd_set set; - ioctl(fd, SNDCTL_DSP_RESET, 0); + ioctl(fd, SNDCTL_DSP_SYNC, 0); frag = (NFRAGS << 16) | fragsize; ioctl(fd, SNDCTL_DSP_SETFRAGMENT, &frag); /*