mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-26 19:32:40 -06:00
Fix biquad filter command's state buffer offset
This commit is contained in:
parent
770a49616d
commit
3a90ed99be
1 changed files with 2 additions and 2 deletions
|
@ -251,8 +251,8 @@ void CommandBuffer::GenerateBiquadFilterCommand(const s32 node_id, EffectInfoBas
|
||||||
|
|
||||||
const auto& parameter{
|
const auto& parameter{
|
||||||
*reinterpret_cast<BiquadFilterInfo::ParameterVersion1*>(effect_info.GetParameter())};
|
*reinterpret_cast<BiquadFilterInfo::ParameterVersion1*>(effect_info.GetParameter())};
|
||||||
const auto state{
|
const auto state{reinterpret_cast<VoiceState::BiquadFilterState*>(
|
||||||
reinterpret_cast<VoiceState::BiquadFilterState*>(effect_info.GetStateBuffer())};
|
effect_info.GetStateBuffer() + channel * sizeof(VoiceState::BiquadFilterState))};
|
||||||
|
|
||||||
cmd.input = buffer_offset + parameter.inputs[channel];
|
cmd.input = buffer_offset + parameter.inputs[channel];
|
||||||
cmd.output = buffer_offset + parameter.outputs[channel];
|
cmd.output = buffer_offset + parameter.outputs[channel];
|
||||||
|
|
Loading…
Reference in a new issue