Commit e01fc747 authored by David Reid's avatar David Reid

Fix a bug in ma_linear_resampler_set_rate().

parent 7ac0f9f2
...@@ -32555,6 +32555,9 @@ static ma_result ma_linear_resampler_set_rate_internal(ma_linear_resampler* pRes ...@@ -32555,6 +32555,9 @@ static ma_result ma_linear_resampler_set_rate_internal(ma_linear_resampler* pRes
return MA_INVALID_ARGS; return MA_INVALID_ARGS;
} }
pResampler->config.sampleRateIn = sampleRateIn;
pResampler->config.sampleRateOut = sampleRateOut;
/* Simplify the sample rate. */ /* Simplify the sample rate. */
gcf = ma_gcf_u32(pResampler->config.sampleRateIn, pResampler->config.sampleRateOut); gcf = ma_gcf_u32(pResampler->config.sampleRateIn, pResampler->config.sampleRateOut);
pResampler->config.sampleRateIn /= gcf; pResampler->config.sampleRateIn /= gcf;
...@@ -42262,6 +42265,7 @@ REVISION HISTORY ...@@ -42262,6 +42265,7 @@ REVISION HISTORY
================ ================
v0.10.2 - TBD v0.10.2 - TBD
- Decorate some APIs with MA_API which were missed in the previous version. - Decorate some APIs with MA_API which were missed in the previous version.
- Fix a bug in ma_linear_resampler_set_rate() and ma_linear_resampler_set_rate_ratio().
v0.10.1 - 2020-03-17 v0.10.1 - 2020-03-17
- Add MA_API decoration. This can be customized by defining it before including miniaudio.h. - Add MA_API decoration. This can be customized by defining it before including miniaudio.h.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment