summaryrefslogtreecommitdiff
path: root/src/audio_core/renderer/system.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2023-08-29 09:27:40 -0400
committerGravatar GitHub2023-08-29 09:27:40 -0400
commit52c71e7eb69bbf41cea49ecddf4385fe289cf364 (patch)
tree45e3e243925943af2559d19fefc2d7e327db54bd /src/audio_core/renderer/system.cpp
parentMerge pull request #11409 from liamwhite/splatoon-nsd-v2 (diff)
parentFix node id index in DropVoices (diff)
downloadyuzu-52c71e7eb69bbf41cea49ecddf4385fe289cf364.tar.gz
yuzu-52c71e7eb69bbf41cea49ecddf4385fe289cf364.tar.xz
yuzu-52c71e7eb69bbf41cea49ecddf4385fe289cf364.zip
Merge pull request #11408 from Kelebek1/fix_audio_node_id
[Audio] Fix node id index in DropVoices
Diffstat (limited to 'src/audio_core/renderer/system.cpp')
-rw-r--r--src/audio_core/renderer/system.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/renderer/system.cpp b/src/audio_core/renderer/system.cpp
index a23627472..6e07baa54 100644
--- a/src/audio_core/renderer/system.cpp
+++ b/src/audio_core/renderer/system.cpp
@@ -778,7 +778,7 @@ u32 System::DropVoices(CommandBuffer& command_buffer, u32 estimated_process_time
778 while (i < command_buffer.count) { 778 while (i < command_buffer.count) {
779 const auto node_id{cmd->node_id}; 779 const auto node_id{cmd->node_id};
780 const auto node_id_type{cmd->node_id >> 28}; 780 const auto node_id_type{cmd->node_id >> 28};
781 const auto node_id_base{cmd->node_id & 0xFFF}; 781 const auto node_id_base{(cmd->node_id >> 16) & 0xFFF};
782 782
783 // If the new estimated process time falls below the limit, we're done dropping. 783 // If the new estimated process time falls below the limit, we're done dropping.
784 if (estimated_process_time <= time_limit) { 784 if (estimated_process_time <= time_limit) {