mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix a bug in ma_linear_resampler_set_rate().
This commit is contained in:
@@ -32555,6 +32555,9 @@ static ma_result ma_linear_resampler_set_rate_internal(ma_linear_resampler* pRes
|
||||
return MA_INVALID_ARGS;
|
||||
}
|
||||
|
||||
pResampler->config.sampleRateIn = sampleRateIn;
|
||||
pResampler->config.sampleRateOut = sampleRateOut;
|
||||
|
||||
/* Simplify the sample rate. */
|
||||
gcf = ma_gcf_u32(pResampler->config.sampleRateIn, pResampler->config.sampleRateOut);
|
||||
pResampler->config.sampleRateIn /= gcf;
|
||||
@@ -42262,6 +42265,7 @@ REVISION HISTORY
|
||||
================
|
||||
v0.10.2 - TBD
|
||||
- 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
|
||||
- Add MA_API decoration. This can be customized by defining it before including miniaudio.h.
|
||||
|
||||
Reference in New Issue
Block a user