6eea43d20e
FlashLib (libflash) distribution. You can use it to quickly play movies without starting Netscape. It can also play movies on root window (suitable for xscreensaver). MAINTAINER= Peter Valchev <pvalchev@toxiclinux.org>
35 lines
924 B
Plaintext
35 lines
924 B
Plaintext
$OpenBSD: patch-Lib_sound_cc,v 1.1.1.1 2001/01/02 12:04:18 reinhard Exp $
|
|
--- Lib/sound.cc.orig Wed Sep 1 15:10:03 1999
|
|
+++ Lib/sound.cc Mon Jan 1 18:44:57 2001
|
|
@@ -26,8 +26,12 @@
|
|
#include <fcntl.h>
|
|
#include <sys/ioctl.h>
|
|
#ifndef NOSOUND
|
|
+#ifdef __OpenBSD__
|
|
+#include <soundcard.h>
|
|
+#else
|
|
#include <linux/soundcard.h>
|
|
#endif
|
|
+#endif
|
|
|
|
#ifdef RCSID
|
|
static char *rcsid = "$Id: patch-Lib_sound_cc,v 1.1.1.1 2001/01/02 12:04:18 reinhard Exp $";
|
|
@@ -162,7 +166,7 @@ SoundMixer::SoundMixer(char *device)
|
|
}
|
|
|
|
// Reset device
|
|
- status = ioctl(dsp, SNDCTL_DSP_RESET);
|
|
+ status = ioctl(dsp, SNDCTL_DSP_RESET, NULL);
|
|
if (status < 0) perror("ioctl SNDCTL_DSP_RESET");
|
|
|
|
// Set sample size
|
|
@@ -324,7 +328,7 @@ SoundMixer::playSounds()
|
|
if (nbBytes) {
|
|
// At last ! Play It !
|
|
write(dsp,buffer,nbBytes);
|
|
- status = ioctl(dsp, SNDCTL_DSP_POST);
|
|
+ status = ioctl(dsp, SNDCTL_DSP_POST, NULL);
|
|
}
|
|
|
|
return nbBytes;
|