mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-25 19:02:45 -06:00
compressor: Remove unneeded casts in ApplyCompressorEffect
Same behavior, but also silences a -Wcast-qual warning, since the second cast casts away const.
This commit is contained in:
parent
1be456db83
commit
bdb866af1d
1 changed files with 1 additions and 2 deletions
|
@ -103,8 +103,7 @@ static void ApplyCompressorEffect(CompressorInfo::ParameterVersion2& params,
|
||||||
} else {
|
} else {
|
||||||
for (s16 channel = 0; channel < params.channel_count; channel++) {
|
for (s16 channel = 0; channel < params.channel_count; channel++) {
|
||||||
if (params.inputs[channel] != params.outputs[channel]) {
|
if (params.inputs[channel] != params.outputs[channel]) {
|
||||||
std::memcpy((char*)output_buffers[channel].data(),
|
std::memcpy(output_buffers[channel].data(), input_buffers[channel].data(),
|
||||||
(char*)input_buffers[channel].data(),
|
|
||||||
output_buffers[channel].size_bytes());
|
output_buffers[channel].size_bytes());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue