diff options
Diffstat (limited to 'src/audio_core')
4 files changed, 6 insertions, 6 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() { | |||
| 34 | error_count = 0; | 34 | error_count = 0; |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | void BehaviorInfo::AppendError(ErrorInfo& error) { | 37 | void BehaviorInfo::AppendError(const ErrorInfo& error) { |
| 38 | LOG_ERROR(Service_Audio, "Error during RequestUpdate, reporting code {:04X} address {:08X}", | 38 | LOG_ERROR(Service_Audio, "Error during RequestUpdate, reporting code {:04X} address {:08X}", |
| 39 | error.error_code.raw, error.address); | 39 | error.error_code.raw, error.address); |
| 40 | if (error_count < MaxErrors) { | 40 | if (error_count < MaxErrors) { |
| @@ -42,7 +42,7 @@ void BehaviorInfo::AppendError(ErrorInfo& error) { | |||
| 42 | } | 42 | } |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | void BehaviorInfo::CopyErrorInfo(std::span<ErrorInfo> out_errors, u32& out_count) { | 45 | void BehaviorInfo::CopyErrorInfo(std::span<ErrorInfo> out_errors, u32& out_count) const { |
| 46 | out_count = std::min(error_count, MaxErrors); | 46 | out_count = std::min(error_count, MaxErrors); |
| 47 | 47 | ||
| 48 | for (size_t i = 0; i < MaxErrors; i++) { | 48 | for (size_t i = 0; i < MaxErrors; i++) { |
diff --git a/src/audio_core/renderer/behavior/behavior_info.h b/src/audio_core/renderer/behavior/behavior_info.h index 7333c297f..15c948344 100644 --- a/src/audio_core/renderer/behavior/behavior_info.h +++ b/src/audio_core/renderer/behavior/behavior_info.h | |||
| @@ -94,7 +94,7 @@ public: | |||
| 94 | * | 94 | * |
| 95 | * @param error - The new error. | 95 | * @param error - The new error. |
| 96 | */ | 96 | */ |
| 97 | void AppendError(ErrorInfo& error); | 97 | void AppendError(const ErrorInfo& error); |
| 98 | 98 | ||
| 99 | /** | 99 | /** |
| 100 | * Copy errors to the given output container. | 100 | * Copy errors to the given output container. |
| @@ -102,7 +102,7 @@ public: | |||
| 102 | * @param out_errors - Output container to receive the errors. | 102 | * @param out_errors - Output container to receive the errors. |
| 103 | * @param out_count - The number of errors written. | 103 | * @param out_count - The number of errors written. |
| 104 | */ | 104 | */ |
| 105 | void CopyErrorInfo(std::span<ErrorInfo> out_errors, u32& out_count); | 105 | void CopyErrorInfo(std::span<ErrorInfo> out_errors, u32& out_count) const; |
| 106 | 106 | ||
| 107 | /** | 107 | /** |
| 108 | * Update the behaviour flags. | 108 | * Update the behaviour flags. |
diff --git a/src/audio_core/renderer/behavior/info_updater.cpp b/src/audio_core/renderer/behavior/info_updater.cpp index 06a37e1a6..c0a307b89 100644 --- a/src/audio_core/renderer/behavior/info_updater.cpp +++ b/src/audio_core/renderer/behavior/info_updater.cpp | |||
| @@ -485,7 +485,7 @@ Result InfoUpdater::UpdateBehaviorInfo(BehaviorInfo& behaviour_) { | |||
| 485 | return ResultSuccess; | 485 | return ResultSuccess; |
| 486 | } | 486 | } |
| 487 | 487 | ||
| 488 | Result InfoUpdater::UpdateErrorInfo(BehaviorInfo& behaviour_) { | 488 | Result InfoUpdater::UpdateErrorInfo(const BehaviorInfo& behaviour_) { |
| 489 | auto out_params{reinterpret_cast<BehaviorInfo::OutStatus*>(output)}; | 489 | auto out_params{reinterpret_cast<BehaviorInfo::OutStatus*>(output)}; |
| 490 | behaviour_.CopyErrorInfo(out_params->errors, out_params->error_count); | 490 | behaviour_.CopyErrorInfo(out_params->errors, out_params->error_count); |
| 491 | 491 | ||
diff --git a/src/audio_core/renderer/behavior/info_updater.h b/src/audio_core/renderer/behavior/info_updater.h index f0b445d9c..c817d8d8d 100644 --- a/src/audio_core/renderer/behavior/info_updater.h +++ b/src/audio_core/renderer/behavior/info_updater.h | |||
| @@ -130,7 +130,7 @@ public: | |||
| 130 | * @param behaviour - Behaviour to update. | 130 | * @param behaviour - Behaviour to update. |
| 131 | * @return Result code. | 131 | * @return Result code. |
| 132 | */ | 132 | */ |
| 133 | Result UpdateErrorInfo(BehaviorInfo& behaviour); | 133 | Result UpdateErrorInfo(const BehaviorInfo& behaviour); |
| 134 | 134 | ||
| 135 | /** | 135 | /** |
| 136 | * Update splitter. | 136 | * Update splitter. |