diff options
| author | 2023-03-11 22:10:38 -0500 | |
|---|---|---|
| committer | 2023-03-12 11:33:01 -0400 | |
| commit | 600f325d87e42f856da58c42a5280f098ebb6e8c (patch) | |
| tree | 75c4fe48af55186a4e420e94a1d7e1bfd92e4ec0 /src/audio_core/renderer | |
| parent | general: use codespell to identify spelling mistakes (diff) | |
| download | yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.gz yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.xz yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.zip | |
general: fix spelling mistakes
Diffstat (limited to 'src/audio_core/renderer')
14 files changed, 25 insertions, 25 deletions
diff --git a/src/audio_core/renderer/adsp/audio_renderer.cpp b/src/audio_core/renderer/adsp/audio_renderer.cpp index 0e437e779..42b4b167a 100644 --- a/src/audio_core/renderer/adsp/audio_renderer.cpp +++ b/src/audio_core/renderer/adsp/audio_renderer.cpp | |||
| @@ -165,7 +165,7 @@ void AudioRenderer::ThreadFunc() { | |||
| 165 | // Check this buffer is valid, as it may not be used. | 165 | // Check this buffer is valid, as it may not be used. |
| 166 | if (command_buffer.buffer != 0) { | 166 | if (command_buffer.buffer != 0) { |
| 167 | // If there are no remaining commands (from the previous list), | 167 | // If there are no remaining commands (from the previous list), |
| 168 | // this is a new command list, initalize it. | 168 | // this is a new command list, initialize it. |
| 169 | if (command_buffer.remaining_command_count == 0) { | 169 | if (command_buffer.remaining_command_count == 0) { |
| 170 | command_list_processor.Initialize(system, command_buffer.buffer, | 170 | command_list_processor.Initialize(system, command_buffer.buffer, |
| 171 | command_buffer.size, streams[index]); | 171 | command_buffer.size, streams[index]); |
diff --git a/src/audio_core/renderer/behavior/behavior_info.h b/src/audio_core/renderer/behavior/behavior_info.h index 15c948344..b52340229 100644 --- a/src/audio_core/renderer/behavior/behavior_info.h +++ b/src/audio_core/renderer/behavior/behavior_info.h | |||
| @@ -155,7 +155,7 @@ public: | |||
| 155 | /** | 155 | /** |
| 156 | * Check if a variadic command buffer is supported. | 156 | * Check if a variadic command buffer is supported. |
| 157 | * As of Rev 5 with the added optional performance metric logging, the command | 157 | * As of Rev 5 with the added optional performance metric logging, the command |
| 158 | * buffer can be a variable size, so take that into account for calcualting its size. | 158 | * buffer can be a variable size, so take that into account for calculating its size. |
| 159 | * | 159 | * |
| 160 | * @return True if supported, otherwise false. | 160 | * @return True if supported, otherwise false. |
| 161 | */ | 161 | */ |
diff --git a/src/audio_core/renderer/effect/effect_info_base.h b/src/audio_core/renderer/effect/effect_info_base.h index 8525fde05..dbdccf278 100644 --- a/src/audio_core/renderer/effect/effect_info_base.h +++ b/src/audio_core/renderer/effect/effect_info_base.h | |||
| @@ -192,7 +192,7 @@ public: | |||
| 192 | /** | 192 | /** |
| 193 | * Get this effect's parameter data. | 193 | * Get this effect's parameter data. |
| 194 | * | 194 | * |
| 195 | * @return Pointer to the parametter, must be cast to the correct type. | 195 | * @return Pointer to the parameter, must be cast to the correct type. |
| 196 | */ | 196 | */ |
| 197 | u8* GetParameter() { | 197 | u8* GetParameter() { |
| 198 | return parameter.data(); | 198 | return parameter.data(); |
| @@ -201,7 +201,7 @@ public: | |||
| 201 | /** | 201 | /** |
| 202 | * Get this effect's parameter data. | 202 | * Get this effect's parameter data. |
| 203 | * | 203 | * |
| 204 | * @return Pointer to the parametter, must be cast to the correct type. | 204 | * @return Pointer to the parameter, must be cast to the correct type. |
| 205 | */ | 205 | */ |
| 206 | u8* GetStateBuffer() { | 206 | u8* GetStateBuffer() { |
| 207 | return state.data(); | 207 | return state.data(); |
diff --git a/src/audio_core/renderer/memory/memory_pool_info.h b/src/audio_core/renderer/memory/memory_pool_info.h index 537a466ec..80c571bc1 100644 --- a/src/audio_core/renderer/memory/memory_pool_info.h +++ b/src/audio_core/renderer/memory/memory_pool_info.h | |||
| @@ -29,7 +29,7 @@ public: | |||
| 29 | */ | 29 | */ |
| 30 | enum class State { | 30 | enum class State { |
| 31 | Invalid, | 31 | Invalid, |
| 32 | Aquired, | 32 | Acquired, |
| 33 | RequestDetach, | 33 | RequestDetach, |
| 34 | Detached, | 34 | Detached, |
| 35 | RequestAttach, | 35 | RequestAttach, |
diff --git a/src/audio_core/renderer/mix/mix_context.h b/src/audio_core/renderer/mix/mix_context.h index da3aa2829..bcd9637da 100644 --- a/src/audio_core/renderer/mix/mix_context.h +++ b/src/audio_core/renderer/mix/mix_context.h | |||
| @@ -93,7 +93,7 @@ public: | |||
| 93 | * Splitter sort, traverse the splitter node graph and sort the sorted mixes from results. | 93 | * Splitter sort, traverse the splitter node graph and sort the sorted mixes from results. |
| 94 | * | 94 | * |
| 95 | * @param splitter_context - Splitter context for the sort. | 95 | * @param splitter_context - Splitter context for the sort. |
| 96 | * @return True if the sort was successful, othewise false. | 96 | * @return True if the sort was successful, otherwise false. |
| 97 | */ | 97 | */ |
| 98 | bool TSortInfo(const SplitterContext& splitter_context); | 98 | bool TSortInfo(const SplitterContext& splitter_context); |
| 99 | 99 | ||
diff --git a/src/audio_core/renderer/performance/performance_detail.h b/src/audio_core/renderer/performance/performance_detail.h index 3a4897e60..f603b9026 100644 --- a/src/audio_core/renderer/performance/performance_detail.h +++ b/src/audio_core/renderer/performance/performance_detail.h | |||
| @@ -33,7 +33,7 @@ struct PerformanceDetailVersion1 { | |||
| 33 | /* 0x0D */ PerformanceEntryType entry_type; | 33 | /* 0x0D */ PerformanceEntryType entry_type; |
| 34 | }; | 34 | }; |
| 35 | static_assert(sizeof(PerformanceDetailVersion1) == 0x10, | 35 | static_assert(sizeof(PerformanceDetailVersion1) == 0x10, |
| 36 | "PerformanceDetailVersion1 has the worng size!"); | 36 | "PerformanceDetailVersion1 has the wrong size!"); |
| 37 | 37 | ||
| 38 | struct PerformanceDetailVersion2 { | 38 | struct PerformanceDetailVersion2 { |
| 39 | /* 0x00 */ u32 node_id; | 39 | /* 0x00 */ u32 node_id; |
| @@ -45,6 +45,6 @@ struct PerformanceDetailVersion2 { | |||
| 45 | /* 0x14 */ char unk14[0x4]; | 45 | /* 0x14 */ char unk14[0x4]; |
| 46 | }; | 46 | }; |
| 47 | static_assert(sizeof(PerformanceDetailVersion2) == 0x18, | 47 | static_assert(sizeof(PerformanceDetailVersion2) == 0x18, |
| 48 | "PerformanceDetailVersion2 has the worng size!"); | 48 | "PerformanceDetailVersion2 has the wrong size!"); |
| 49 | 49 | ||
| 50 | } // namespace AudioCore::AudioRenderer | 50 | } // namespace AudioCore::AudioRenderer |
diff --git a/src/audio_core/renderer/performance/performance_entry.h b/src/audio_core/renderer/performance/performance_entry.h index d1b21406b..d6b1158db 100644 --- a/src/audio_core/renderer/performance/performance_entry.h +++ b/src/audio_core/renderer/performance/performance_entry.h | |||
| @@ -22,7 +22,7 @@ struct PerformanceEntryVersion1 { | |||
| 22 | /* 0x0C */ PerformanceEntryType entry_type; | 22 | /* 0x0C */ PerformanceEntryType entry_type; |
| 23 | }; | 23 | }; |
| 24 | static_assert(sizeof(PerformanceEntryVersion1) == 0x10, | 24 | static_assert(sizeof(PerformanceEntryVersion1) == 0x10, |
| 25 | "PerformanceEntryVersion1 has the worng size!"); | 25 | "PerformanceEntryVersion1 has the wrong size!"); |
| 26 | 26 | ||
| 27 | struct PerformanceEntryVersion2 { | 27 | struct PerformanceEntryVersion2 { |
| 28 | /* 0x00 */ u32 node_id; | 28 | /* 0x00 */ u32 node_id; |
| @@ -32,6 +32,6 @@ struct PerformanceEntryVersion2 { | |||
| 32 | /* 0x0D */ char unk0D[0xB]; | 32 | /* 0x0D */ char unk0D[0xB]; |
| 33 | }; | 33 | }; |
| 34 | static_assert(sizeof(PerformanceEntryVersion2) == 0x18, | 34 | static_assert(sizeof(PerformanceEntryVersion2) == 0x18, |
| 35 | "PerformanceEntryVersion2 has the worng size!"); | 35 | "PerformanceEntryVersion2 has the wrong size!"); |
| 36 | 36 | ||
| 37 | } // namespace AudioCore::AudioRenderer | 37 | } // namespace AudioCore::AudioRenderer |
diff --git a/src/audio_core/renderer/performance/performance_frame_header.h b/src/audio_core/renderer/performance/performance_frame_header.h index 707cc0afb..b1848284e 100644 --- a/src/audio_core/renderer/performance/performance_frame_header.h +++ b/src/audio_core/renderer/performance/performance_frame_header.h | |||
| @@ -16,7 +16,7 @@ struct PerformanceFrameHeaderVersion1 { | |||
| 16 | /* 0x14 */ u32 frame_index; | 16 | /* 0x14 */ u32 frame_index; |
| 17 | }; | 17 | }; |
| 18 | static_assert(sizeof(PerformanceFrameHeaderVersion1) == 0x18, | 18 | static_assert(sizeof(PerformanceFrameHeaderVersion1) == 0x18, |
| 19 | "PerformanceFrameHeaderVersion1 has the worng size!"); | 19 | "PerformanceFrameHeaderVersion1 has the wrong size!"); |
| 20 | 20 | ||
| 21 | struct PerformanceFrameHeaderVersion2 { | 21 | struct PerformanceFrameHeaderVersion2 { |
| 22 | /* 0x00 */ u32 magic; // "PERF" | 22 | /* 0x00 */ u32 magic; // "PERF" |
| @@ -31,6 +31,6 @@ struct PerformanceFrameHeaderVersion2 { | |||
| 31 | /* 0x25 */ char unk25[0xB]; | 31 | /* 0x25 */ char unk25[0xB]; |
| 32 | }; | 32 | }; |
| 33 | static_assert(sizeof(PerformanceFrameHeaderVersion2) == 0x30, | 33 | static_assert(sizeof(PerformanceFrameHeaderVersion2) == 0x30, |
| 34 | "PerformanceFrameHeaderVersion2 has the worng size!"); | 34 | "PerformanceFrameHeaderVersion2 has the wrong size!"); |
| 35 | 35 | ||
| 36 | } // namespace AudioCore::AudioRenderer | 36 | } // namespace AudioCore::AudioRenderer |
diff --git a/src/audio_core/renderer/splitter/splitter_context.h b/src/audio_core/renderer/splitter/splitter_context.h index cfd092b4f..1a63db1d3 100644 --- a/src/audio_core/renderer/splitter/splitter_context.h +++ b/src/audio_core/renderer/splitter/splitter_context.h | |||
| @@ -55,7 +55,7 @@ public: | |||
| 55 | /** | 55 | /** |
| 56 | * Get the total number of splitter destinations. | 56 | * Get the total number of splitter destinations. |
| 57 | * | 57 | * |
| 58 | * @return Number of destiantions. | 58 | * @return Number of destinations. |
| 59 | */ | 59 | */ |
| 60 | u32 GetDataCount() const; | 60 | u32 GetDataCount() const; |
| 61 | 61 | ||
diff --git a/src/audio_core/renderer/splitter/splitter_destinations_data.h b/src/audio_core/renderer/splitter/splitter_destinations_data.h index bd3d55748..d55ce0ad3 100644 --- a/src/audio_core/renderer/splitter/splitter_destinations_data.h +++ b/src/audio_core/renderer/splitter/splitter_destinations_data.h | |||
| @@ -87,7 +87,7 @@ public: | |||
| 87 | /** | 87 | /** |
| 88 | * Update this destination. | 88 | * Update this destination. |
| 89 | * | 89 | * |
| 90 | * @param params - Inpout parameters to update the destination. | 90 | * @param params - Input parameters to update the destination. |
| 91 | */ | 91 | */ |
| 92 | void Update(const InParameter& params); | 92 | void Update(const InParameter& params); |
| 93 | 93 | ||
| @@ -126,9 +126,9 @@ private: | |||
| 126 | std::array<f32, MaxMixBuffers> prev_mix_volumes{0.0f}; | 126 | std::array<f32, MaxMixBuffers> prev_mix_volumes{0.0f}; |
| 127 | /// Next destination in the mix chain | 127 | /// Next destination in the mix chain |
| 128 | SplitterDestinationData* next{}; | 128 | SplitterDestinationData* next{}; |
| 129 | /// Is this destiantion in use? | 129 | /// Is this destination in use? |
| 130 | bool in_use{}; | 130 | bool in_use{}; |
| 131 | /// Does this destiantion need its volumes updated? | 131 | /// Does this destination need its volumes updated? |
| 132 | bool need_update{}; | 132 | bool need_update{}; |
| 133 | }; | 133 | }; |
| 134 | 134 | ||
diff --git a/src/audio_core/renderer/splitter/splitter_info.h b/src/audio_core/renderer/splitter/splitter_info.h index d1d75064c..b0ad01fe0 100644 --- a/src/audio_core/renderer/splitter/splitter_info.h +++ b/src/audio_core/renderer/splitter/splitter_info.h | |||
| @@ -49,14 +49,14 @@ public: | |||
| 49 | /** | 49 | /** |
| 50 | * Get the number of destinations in this splitter. | 50 | * Get the number of destinations in this splitter. |
| 51 | * | 51 | * |
| 52 | * @return The number of destiantions. | 52 | * @return The number of destinations. |
| 53 | */ | 53 | */ |
| 54 | u32 GetDestinationCount() const; | 54 | u32 GetDestinationCount() const; |
| 55 | 55 | ||
| 56 | /** | 56 | /** |
| 57 | * Set the number of destinations in this splitter. | 57 | * Set the number of destinations in this splitter. |
| 58 | * | 58 | * |
| 59 | * @param count - The new number of destiantions. | 59 | * @param count - The new number of destinations. |
| 60 | */ | 60 | */ |
| 61 | void SetDestinationCount(u32 count); | 61 | void SetDestinationCount(u32 count); |
| 62 | 62 | ||
diff --git a/src/audio_core/renderer/system.h b/src/audio_core/renderer/system.h index 429196e41..e328783b6 100644 --- a/src/audio_core/renderer/system.h +++ b/src/audio_core/renderer/system.h | |||
| @@ -154,7 +154,7 @@ public: | |||
| 154 | ExecutionMode GetExecutionMode() const; | 154 | ExecutionMode GetExecutionMode() const; |
| 155 | 155 | ||
| 156 | /** | 156 | /** |
| 157 | * Get the rendering deivce for this system. | 157 | * Get the rendering device for this system. |
| 158 | * This is unused. | 158 | * This is unused. |
| 159 | * | 159 | * |
| 160 | * @return Rendering device for this system. | 160 | * @return Rendering device for this system. |
| @@ -241,7 +241,7 @@ private: | |||
| 241 | std::span<u8> command_workbuffer{}; | 241 | std::span<u8> command_workbuffer{}; |
| 242 | /// Size of command workbuffer | 242 | /// Size of command workbuffer |
| 243 | u64 command_workbuffer_size{}; | 243 | u64 command_workbuffer_size{}; |
| 244 | /// Numebr of commands in the workbuffer | 244 | /// Number of commands in the workbuffer |
| 245 | u64 command_buffer_size{}; | 245 | u64 command_buffer_size{}; |
| 246 | /// Manager for upsamplers | 246 | /// Manager for upsamplers |
| 247 | UpsamplerManager* upsampler_manager{}; | 247 | UpsamplerManager* upsampler_manager{}; |
diff --git a/src/audio_core/renderer/system_manager.h b/src/audio_core/renderer/system_manager.h index 81457a3a1..415ddb74f 100644 --- a/src/audio_core/renderer/system_manager.h +++ b/src/audio_core/renderer/system_manager.h | |||
| @@ -36,7 +36,7 @@ public: | |||
| 36 | /** | 36 | /** |
| 37 | * Initialize the system manager, called when any system is registered. | 37 | * Initialize the system manager, called when any system is registered. |
| 38 | * | 38 | * |
| 39 | * @return True if sucessfully initialized, otherwise false. | 39 | * @return True if successfully initialized, otherwise false. |
| 40 | */ | 40 | */ |
| 41 | bool InitializeUnsafe(); | 41 | bool InitializeUnsafe(); |
| 42 | 42 | ||
| @@ -50,7 +50,7 @@ public: | |||
| 50 | * The manager does not own the system, so do not free it without calling Remove. | 50 | * The manager does not own the system, so do not free it without calling Remove. |
| 51 | * | 51 | * |
| 52 | * @param system - The system to add. | 52 | * @param system - The system to add. |
| 53 | * @return True if succesfully added, otherwise false. | 53 | * @return True if successfully added, otherwise false. |
| 54 | */ | 54 | */ |
| 55 | bool Add(System& system); | 55 | bool Add(System& system); |
| 56 | 56 | ||
| @@ -58,7 +58,7 @@ public: | |||
| 58 | * Remove an audio render system from the manager. | 58 | * Remove an audio render system from the manager. |
| 59 | * | 59 | * |
| 60 | * @param system - The system to remove. | 60 | * @param system - The system to remove. |
| 61 | * @return True if succesfully removed, otherwise false. | 61 | * @return True if successfully removed, otherwise false. |
| 62 | */ | 62 | */ |
| 63 | bool Remove(System& system); | 63 | bool Remove(System& system); |
| 64 | 64 | ||
diff --git a/src/audio_core/renderer/voice/voice_info.h b/src/audio_core/renderer/voice/voice_info.h index 930180895..3c5d3e04f 100644 --- a/src/audio_core/renderer/voice/voice_info.h +++ b/src/audio_core/renderer/voice/voice_info.h | |||
| @@ -183,7 +183,7 @@ public: | |||
| 183 | void Initialize(); | 183 | void Initialize(); |
| 184 | 184 | ||
| 185 | /** | 185 | /** |
| 186 | * Does this voice ned an update? | 186 | * Does this voice need an update? |
| 187 | * | 187 | * |
| 188 | * @param params - Input parameters to check matching. | 188 | * @param params - Input parameters to check matching. |
| 189 | * | 189 | * |
| @@ -236,7 +236,7 @@ public: | |||
| 236 | * | 236 | * |
| 237 | * @param error_info - Output array of errors. | 237 | * @param error_info - Output array of errors. |
| 238 | * @param wave_buffer - The wavebuffer to be updated. | 238 | * @param wave_buffer - The wavebuffer to be updated. |
| 239 | * @param wave_buffer_internal - Input parametters to be used for the update. | 239 | * @param wave_buffer_internal - Input parameters to be used for the update. |
| 240 | * @param sample_format - Sample format of the wavebuffer. | 240 | * @param sample_format - Sample format of the wavebuffer. |
| 241 | * @param valid - Is this wavebuffer valid? | 241 | * @param valid - Is this wavebuffer valid? |
| 242 | * @param pool_mapper - Used to map the wavebuffers. | 242 | * @param pool_mapper - Used to map the wavebuffers. |