From 504cdadd60a760fd144df0d64ed9eaab2118a61d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 23 Feb 2012 15:25:30 -0800 Subject: Use an enum for the device type --- OpenAL32/Include/alMain.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'OpenAL32/Include') 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; -- cgit v1.2.3