openbsd-ports/x11/wxWidgets/patches/patch-src_unix_sound_cpp
steven 95a9107ffe update to 2.8.6
tested by various people
2007-10-23 11:28:09 +00:00

28 lines
863 B
Plaintext

$OpenBSD: patch-src_unix_sound_cpp,v 1.2 2007/10/23 11:28:10 steven Exp $
--- src/unix/sound.cpp.orig Tue Sep 25 10:52:38 2007
+++ src/unix/sound.cpp Tue Oct 2 11:53:18 2007
@@ -27,6 +27,10 @@
#include <sys/soundcard.h>
#endif
+#ifdef HAVE_SOUNDCARD_H
+#include <soundcard.h>
+#endif
+
#ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/intl.h"
@@ -95,10 +99,10 @@ class wxSoundBackendNull : public wxSoundBackend (publ
// wxSoundBackendOSS, for Linux
// ----------------------------------------------------------------------------
-#ifdef HAVE_SYS_SOUNDCARD_H
+#if defined(HAVE_SYS_SOUNDCARD_H) || defined(HAVE_SOUNDCARD_H)
#ifndef AUDIODEV
-#define AUDIODEV "/dev/dsp" // Default path for audio device
+#define AUDIODEV "/dev/audio" // Default path for audio device
#endif
class wxSoundBackendOSS : public wxSoundBackend