aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-23 15:25:30 -0800
committerChris Robinson <[email protected]>2012-02-23 15:25:30 -0800
commit504cdadd60a760fd144df0d64ed9eaab2118a61d (patch)
tree1380f2c0a743c5b20682426f40b6d1d79f01a17a /OpenAL32/Include
parent45c10229d91ae260ae7f555be8098be7ebfb61ba (diff)
Use an enum for the device type
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index ddb93c84..51740797 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -548,13 +548,18 @@ extern const struct EffectList {
} EffectList[];
+enum DeviceType {
+ Playback,
+ Capture,
+ Loopback
+};
+
struct ALCdevice_struct
{
volatile RefCount ref;
- ALCboolean Connected;
- ALboolean IsCaptureDevice;
- ALboolean IsLoopbackDevice;
+ ALCboolean Connected;
+ enum DeviceType Type;
CRITICAL_SECTION Mutex;