Skip to content

Commit

Permalink
Fixes 24 bit tracks RMS evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
crsib committed Apr 12, 2024
1 parent 5bfdb12 commit e38e1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/lib-cloud-audiocom/sync/WavPackCompressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ float GetFloatValue(int16_t value) noexcept

float GetFloatValue(int32_t value) noexcept
{
return static_cast<float>(value) / std::numeric_limits<int32_t>::max();
return static_cast<float>(value) / ((1 << 23) - 1);
}

float GetFloatValue(float value) noexcept
Expand Down

0 comments on commit e38e1c2

Please sign in to comment.