Mercurial > audlegacy-plugins
diff src/OSS4/audio.c @ 2252:b461d608befe
replaced SNDCTL_DSP_RESET with SNDCTL_DSP_SYNC, as suggested by Michal
author | Cristi Magherusan <majeru@atheme-project.org> |
---|---|
date | Wed, 05 Dec 2007 13:35:16 +0200 |
parents | c19a820de01e |
children | b55720f38a3c |
line wrap: on
line diff
--- 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); /*