diff options
author | Chris Robinson <[email protected]> | 2018-11-17 23:02:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-17 23:02:27 -0800 |
commit | fa3c34268dd7d9bc380ecd19aedb28924d29b295 (patch) | |
tree | c702638d5589054498fc6c7292b6d6d908954954 /OpenAL32/alSource.cpp | |
parent | 8f6e0f97ec5543de8ae49f12046b5c893565778e (diff) |
Move the ALCcontext definition to its own header
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r-- | OpenAL32/alSource.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<int>(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; |