1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:27:35 +00:00

LibDSP+LibAudio: Use logarithmic scaling in delay effect

With logarithmic volume scaling, the delay effect can sound more
natural.
This commit is contained in:
kleines Filmröllchen 2021-09-02 19:43:10 +02:00 committed by Andreas Kling
parent 152ec28da0
commit ab4a2b8b41
2 changed files with 3 additions and 4 deletions

View file

@ -78,7 +78,7 @@ struct Frame {
return *this;
}
ALWAYS_INLINE Frame log_multiplied(double const volume_change)
ALWAYS_INLINE Frame log_multiplied(double const volume_change) const
{
Frame new_frame { left, right };
new_frame.log_multiply(volume_change);