mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix an undefined behavior error in the s16 to s32 conversion routine.
This commit is contained in:
@@ -8,6 +8,7 @@ v0.11.23 - TBD
|
|||||||
* Fixed a memory leak in the resource manager when opening a file fails.
|
* Fixed a memory leak in the resource manager when opening a file fails.
|
||||||
* Fixed an assertion failure in the resource manager when opening a file fails.
|
* Fixed an assertion failure in the resource manager when opening a file fails.
|
||||||
* Fixed a compilation warning relating to `MA_FALLTHROUGH`
|
* Fixed a compilation warning relating to `MA_FALLTHROUGH`
|
||||||
|
* Fixed an undefined behavior error in the s16 to s32 conversion routine.
|
||||||
* Fixed an undefined behavior error relating to MurmurHash3.
|
* Fixed an undefined behavior error relating to MurmurHash3.
|
||||||
* Fixed an undefined behavior error with the LCG random number generator.
|
* Fixed an undefined behavior error with the LCG random number generator.
|
||||||
* Fixed a compilation error with `MA_NO_SSE2`.
|
* Fixed a compilation error with `MA_NO_SSE2`.
|
||||||
|
|||||||
+1
-1
@@ -45496,7 +45496,7 @@ static MA_INLINE void ma_pcm_s16_to_s32__reference(void* dst, const void* src, m
|
|||||||
|
|
||||||
ma_uint64 i;
|
ma_uint64 i;
|
||||||
for (i = 0; i < count; i += 1) {
|
for (i = 0; i < count; i += 1) {
|
||||||
dst_s32[i] = src_s16[i] << 16;
|
dst_s32[i] = (ma_int32)src_s16[i] << 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
(void)ditherMode;
|
(void)ditherMode;
|
||||||
|
|||||||
Reference in New Issue
Block a user