blob: 196bad0a53d01823f4ab13f383ceaba4e331f02a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-aa,v 1.1.1.1 2008/10/23 08:07:09 wulf Exp $
--- src/soundcard/sound.cxx.orig 2008-04-10 22:29:17.000000000 +0930
+++ src/soundcard/sound.cxx 2008-04-10 22:31:43.000000000 +0930
@@ -467,9 +467,11 @@
bool SoundOSS::wait_till_finished()
{
- if (ioctl(device_fd, SNDCTL_DSP_POST, 1) == -1 )
+ int arg = 1;
+ if (ioctl(device_fd, SNDCTL_DSP_POST, &arg) == -1 )
return false;
- if (ioctl(device_fd, SNDCTL_DSP_SYNC, 0) == -1)
+ arg = 0;
+ if (ioctl(device_fd, SNDCTL_DSP_SYNC, &arg) == -1)
return false; /* format (or ioctl()) not supported by device */
return true; /* all sound has been played */
}
|