Skip to content

Commit

Permalink
Fixed type conversion for LoudnessMeter
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Jan 14, 2025
1 parent ca53e91 commit 4bbfd70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/meters/LoudnessMeter.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2024 Vladimir Sadovnikov <sadko4u@gmail.com>
* Copyright (C) 2025 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2025 Vladimir Sadovnikov <sadko4u@gmail.com>
*
* This file is part of lsp-dsp-units
* Created on: 20 сент. 2023 г.
Expand Down Expand Up @@ -290,7 +290,7 @@ namespace lsp
return STATUS_OK;

// Reallocate ring buffers for RMS estimation and lookahead
size_t len_period = round_pow2(size_t(dspu::millis_to_samples(sample_rate, fMaxPeriod)) + BUFFER_SIZE);
size_t len_period = round_pow2(fixed_int(size_t(dspu::millis_to_samples(sample_rate, fMaxPeriod)) + BUFFER_SIZE));
size_t szof_period = align_size(len_period * sizeof(float), DEFAULT_ALIGN);

size_t to_alloc =
Expand Down

0 comments on commit 4bbfd70

Please sign in to comment.