From fa3c34268dd7d9bc380ecd19aedb28924d29b295 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 17 Nov 2018 23:02:27 -0800 Subject: Move the ALCcontext definition to its own header --- OpenAL32/alSource.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenAL32/alSource.cpp') diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index 93b0cd88..f3996cbf 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -27,7 +27,9 @@ #include "AL/al.h" #include "AL/alc.h" + #include "alMain.h" +#include "alcontext.h" #include "alError.h" #include "alSource.h" #include "alBuffer.h" @@ -1465,7 +1467,7 @@ static ALboolean GetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp p return AL_TRUE; case AL_DISTANCE_MODEL: - *values = Source->DistanceModel; + *values = static_cast(Source->DistanceModel); return AL_TRUE; case AL_SOURCE_RESAMPLER_SOFT: @@ -3079,7 +3081,7 @@ static void InitSourceParams(ALsource *Source, ALsizei num_sends) Source->DopplerFactor = 1.0f; Source->HeadRelative = AL_FALSE; Source->Looping = AL_FALSE; - Source->DistanceModel = DefaultDistanceModel; + Source->DistanceModel = DistanceModel::Default; Source->Resampler = ResamplerDefault; Source->DirectChannels = AL_FALSE; Source->Spatialize = SpatializeAuto; -- cgit v1.2.3