summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-02-13 17:21:29 +0100
committerKelebek1 <eeeedddccc@hotmail.co.uk>2023-02-13 17:21:29 +0100
commit3a90ed99be4225bc7b3d5ee93c6032a4f38a487f (patch)
tree42d571936191610d49abb726e7fecb16f0ce9323
parentMerge pull request #9784 from m-HD/master (diff)
downloadyuzu-3a90ed99be4225bc7b3d5ee93c6032a4f38a487f.tar
yuzu-3a90ed99be4225bc7b3d5ee93c6032a4f38a487f.tar.gz
yuzu-3a90ed99be4225bc7b3d5ee93c6032a4f38a487f.tar.bz2
yuzu-3a90ed99be4225bc7b3d5ee93c6032a4f38a487f.tar.lz
yuzu-3a90ed99be4225bc7b3d5ee93c6032a4f38a487f.tar.xz
yuzu-3a90ed99be4225bc7b3d5ee93c6032a4f38a487f.tar.zst
yuzu-3a90ed99be4225bc7b3d5ee93c6032a4f38a487f.zip
-rw-r--r--src/audio_core/renderer/command/command_buffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/renderer/command/command_buffer.cpp b/src/audio_core/renderer/command/command_buffer.cpp
index 8c6fe97e7..0bd418306 100644
--- a/src/audio_core/renderer/command/command_buffer.cpp
+++ b/src/audio_core/renderer/command/command_buffer.cpp
@@ -251,8 +251,8 @@ void CommandBuffer::GenerateBiquadFilterCommand(const s32 node_id, EffectInfoBas
const auto& parameter{
*reinterpret_cast<BiquadFilterInfo::ParameterVersion1*>(effect_info.GetParameter())};
- const auto state{
- reinterpret_cast<VoiceState::BiquadFilterState*>(effect_info.GetStateBuffer())};
+ const auto state{reinterpret_cast<VoiceState::BiquadFilterState*>(
+ effect_info.GetStateBuffer() + channel * sizeof(VoiceState::BiquadFilterState))};
cmd.input = buffer_offset + parameter.inputs[channel];
cmd.output = buffer_offset + parameter.outputs[channel];