aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-04-21 00:06:40 -0700
committerChris Robinson <[email protected]>2017-04-21 00:06:40 -0700
commit26b49c54afb9868115e495098ce69f2d2487c932 (patch)
tree9b0fb3d3c22ed4223839da3a40c5e71bf0f29174 /OpenAL32/alSource.c
parent1e8ea59564d4082e164f2a7707df90b00f48a35b (diff)
Store the resampler as part of the source
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 757c96db..1caea5ef 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -2946,6 +2946,7 @@ static void InitSourceParams(ALsource *Source, ALsizei num_sends)
Source->HeadRelative = AL_FALSE;
Source->Looping = AL_FALSE;
Source->DistanceModel = DefaultDistanceModel;
+ Source->Resampler = ResamplerDefault;
Source->DirectChannels = AL_FALSE;
Source->StereoPan[0] = DEG2RAD( 30.0f);
@@ -3054,6 +3055,7 @@ static void UpdateSourceProps(ALsource *source, ALvoice *voice, ALsizei num_send
}
props->HeadRelative = source->HeadRelative;
props->DistanceModel = source->DistanceModel;
+ props->Resampler = source->Resampler;
props->DirectChannels = source->DirectChannels;
props->DryGainHFAuto = source->DryGainHFAuto;