diff options
author | bunnei <bunneidev@gmail.com> | 2022-09-17 08:51:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-17 08:51:31 +0200 |
commit | 4a7a7713401983f94b6c07fa07cbbbfa4025556c (patch) | |
tree | ee9f4cac999d8c4f7e5c1d5d51e624ff82580607 /src/audio_core/renderer/behavior/behavior_info.cpp | |
parent | Merge pull request #8916 from Docteh/muilti_build (diff) | |
parent | audio_renderer: Pass command buffer by const reference (diff) | |
download | yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar.gz yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar.bz2 yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar.lz yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar.xz yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar.zst yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.zip |
Diffstat (limited to 'src/audio_core/renderer/behavior/behavior_info.cpp')
-rw-r--r-- | src/audio_core/renderer/behavior/behavior_info.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/renderer/behavior/behavior_info.cpp b/src/audio_core/renderer/behavior/behavior_info.cpp index 92140aaea..3d2a91312 100644 --- a/src/audio_core/renderer/behavior/behavior_info.cpp +++ b/src/audio_core/renderer/behavior/behavior_info.cpp @@ -34,7 +34,7 @@ void BehaviorInfo::ClearError() { error_count = 0; } -void BehaviorInfo::AppendError(ErrorInfo& error) { +void BehaviorInfo::AppendError(const ErrorInfo& error) { LOG_ERROR(Service_Audio, "Error during RequestUpdate, reporting code {:04X} address {:08X}", error.error_code.raw, error.address); if (error_count < MaxErrors) { @@ -42,7 +42,7 @@ void BehaviorInfo::AppendError(ErrorInfo& error) { } } -void BehaviorInfo::CopyErrorInfo(std::span<ErrorInfo> out_errors, u32& out_count) { +void BehaviorInfo::CopyErrorInfo(std::span<ErrorInfo> out_errors, u32& out_count) const { out_count = std::min(error_count, MaxErrors); for (size_t i = 0; i < MaxErrors; i++) { |