AudioCommon: Remove unused qualifiers and make variables constant

This commit is contained in:
Dr. Dystopia
2025-05-22 11:28:52 +02:00
parent 2e22a3cf42
commit a6b04f53e0
6 changed files with 35 additions and 29 deletions

View File

@ -32,7 +32,7 @@ size_t SurroundDecoder::QueryFramesNeededForSurroundOutput(const size_t output_f
if (m_decoded_fifo.size() < output_frames * SURROUND_CHANNELS)
{
// Output stereo frames needed to have at least the desired number of surround frames
size_t frames_needed = output_frames - m_decoded_fifo.size() / SURROUND_CHANNELS;
size_t const frames_needed = output_frames - m_decoded_fifo.size() / SURROUND_CHANNELS;
return frames_needed + m_frame_block_size - frames_needed % m_frame_block_size;
}