Skip to content

Commit 4db016d

Browse files
authored
NumberConverter::convertArray get error num (#2036)
1 parent a8a32f1 commit 4db016d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioTools/CoreAudio/AudioTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class NumberConverter {
403403
float factor = static_cast<float>(maxValueT<ToT>()) / maxValueT<FromT>();
404404
float vol_factor = factor * vol;
405405
for (int j = 0; j < samples; j++) {
406-
to[j] = clipT<ToT>(vol * convert<FromT, ToT>(from[j]));
406+
to[j] = clipT<ToT>(vol_factor * convert<FromT, ToT>(from[j]));
407407
}
408408
}
409409
};

0 commit comments

Comments
 (0)