aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-05-04 12:17:50 -0700
committerChris Robinson <[email protected]>2017-05-04 12:27:10 -0700
commitb639bc99132015217ff173680e1a43f44fad2ce3 (patch)
treee437b8aad0d56b719dceb5baf4da4efcad86e838 /OpenAL32/alSource.c
parent7829ad8fc9802442759b80014a695d7425fdf6de (diff)
Add a property to force source spatialization on or off
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 a1ba0ebc..9ef9a4eb 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -2984,6 +2984,7 @@ static void InitSourceParams(ALsource *Source, ALsizei num_sends)
Source->DistanceModel = DefaultDistanceModel;
Source->Resampler = ResamplerDefault;
Source->DirectChannels = AL_FALSE;
+ Source->Spatialize = SpatializeAuto;
Source->StereoPan[0] = DEG2RAD( 30.0f);
Source->StereoPan[1] = DEG2RAD(-30.0f);
@@ -3093,6 +3094,7 @@ static void UpdateSourceProps(ALsource *source, ALvoice *voice, ALsizei num_send
props->DistanceModel = source->DistanceModel;
props->Resampler = source->Resampler;
props->DirectChannels = source->DirectChannels;
+ props->SpatializeMode = source->Spatialize;
props->DryGainHFAuto = source->DryGainHFAuto;
props->WetGainAuto = source->WetGainAuto;