Gerald Pfeifer : wineoss.drv: Cope with system which lack SNDCTL_DSP_HALT.
Alexandre Julliard
julliard at winehq.org
Fri May 20 12:44:30 CDT 2011
Module: wine
Branch: master
Commit: be57450fee3cbe57300630bbc4b7b80d969c8144
URL: http://source.winehq.org/git/wine.git/?a=commit;h=be57450fee3cbe57300630bbc4b7b80d969c8144
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Thu May 19 08:24:23 2011 -0600
wineoss.drv: Cope with system which lack SNDCTL_DSP_HALT.
---
dlls/wineoss.drv/mmdevdrv.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/wineoss.drv/mmdevdrv.c b/dlls/wineoss.drv/mmdevdrv.c
index 7dec1e0..0edcb25 100644
--- a/dlls/wineoss.drv/mmdevdrv.c
+++ b/dlls/wineoss.drv/mmdevdrv.c
@@ -53,6 +53,13 @@
#include "audiopolicy.h"
#include "audioclient.h"
+
+/* Some implementations of OSS, such as FreeBSD older than 9.0, lack
+ SNDCTL_DSP_HALT which is just a synonym for the older SNDCTL_DSP_RESET. */
+#ifndef SNDCTL_DSP_HALT
+#define SNDCTL_DSP_HALT SNDCTL_DSP_RESET
+#endif
+
WINE_DEFAULT_DEBUG_CHANNEL(oss);
#define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER)
More information about the wine-cvs
mailing list