diff options
author | Chris Robinson <[email protected]> | 2017-04-21 00:06:40 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-04-21 00:06:40 -0700 |
commit | 26b49c54afb9868115e495098ce69f2d2487c932 (patch) | |
tree | 9b0fb3d3c22ed4223839da3a40c5e71bf0f29174 /Alc/ALu.c | |
parent | 1e8ea59564d4082e164f2a7707df90b00f48a35b (diff) |
Store the resampler as part of the source
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -455,6 +455,7 @@ static void CalcNonAttnSourceParams(ALvoice *voice, const struct ALvoiceProps *p else voice->Step = maxi(fastf2i(Pitch*FRACTIONONE + 0.5f), 1); BsincPrepare(voice->Step, &voice->ResampleState.bsinc); + voice->Resampler = SelectResampler(props->Resampler); /* Calculate gains */ DryGain = clampf(SourceVolume, MinVolume, MaxVolume); @@ -1095,6 +1096,7 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALvoiceProps *prop else voice->Step = maxi(fastf2i(Pitch*FRACTIONONE + 0.5f), 1); BsincPrepare(voice->Step, &voice->ResampleState.bsinc); + voice->Resampler = SelectResampler(props->Resampler); voice->Flags &= ~(VOICE_IS_HRTF | VOICE_HAS_NFC); if(Device->Render_Mode == HrtfRender) |