From 76a5e0a29c3fb42a6ef3326669e1929e0617aac5 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Thu, 28 Aug 2003 19:38:29 +0000 Subject: [PATCH] Added speaker config macros. --- include/dsound.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/dsound.h b/include/dsound.h index cb7fbfacdb3..893088b9764 100644 --- a/include/dsound.h +++ b/include/dsound.h @@ -253,6 +253,10 @@ typedef const DSBPOSITIONNOTIFY *LPCDSBPOSITIONNOTIFY; #define DSSPEAKER_GEOMETRY_WIDE 0x00000014 /* 20 degrees */ #define DSSPEAKER_GEOMETRY_MAX 0x000000B4 /* 180 degrees */ +#define DSSPEAKER_COMBINED(c, g) ((DWORD)(((BYTE)(c)) | ((DWORD)((BYTE)(g))) << 16)) +#define DSSPEAKER_CONFIG(a) ((BYTE)(a)) +#define DSSPEAKER_GEOMETRY(a) ((BYTE)(((DWORD)(a) >> 16) & 0x00FF)) + #define DS_CERTIFIED 0x00000000 #define DS_UNCERTIFIED 0x00000001