summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-02-14 15:11:26 +0100
committerGitHub <noreply@github.com>2023-02-14 15:11:26 +0100
commit5f5a6e4b2e541e86c0bfdb99e3acfbbebe89a5d3 (patch)
treebbc0c79bc3a3cfd0282bd2dd9e05ef2da2307904 /src
parentMerge pull request #9793 from Morph1984/borderless-hidpi (diff)
parentFix biquad filter command's state buffer offset (diff)
downloadyuzu-5f5a6e4b2e541e86c0bfdb99e3acfbbebe89a5d3.tar
yuzu-5f5a6e4b2e541e86c0bfdb99e3acfbbebe89a5d3.tar.gz
yuzu-5f5a6e4b2e541e86c0bfdb99e3acfbbebe89a5d3.tar.bz2
yuzu-5f5a6e4b2e541e86c0bfdb99e3acfbbebe89a5d3.tar.lz
yuzu-5f5a6e4b2e541e86c0bfdb99e3acfbbebe89a5d3.tar.xz
yuzu-5f5a6e4b2e541e86c0bfdb99e3acfbbebe89a5d3.tar.zst
yuzu-5f5a6e4b2e541e86c0bfdb99e3acfbbebe89a5d3.zip
Diffstat (limited to 'src')
-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];