diff options
| author | 2020-07-25 12:32:05 +1000 | |
|---|---|---|
| committer | 2020-07-25 12:39:37 +1000 | |
| commit | b924c71822225b6de396b687debb93c1af59e2d6 (patch) | |
| tree | 00a200376275423a7bd58204ec21fae6ae0da846 /src/audio_core/splitter_context.cpp | |
| parent | Queue extra mix buffer (diff) | |
| download | yuzu-b924c71822225b6de396b687debb93c1af59e2d6.tar.gz yuzu-b924c71822225b6de396b687debb93c1af59e2d6.tar.xz yuzu-b924c71822225b6de396b687debb93c1af59e2d6.zip | |
Address issues
Diffstat (limited to 'src/audio_core/splitter_context.cpp')
| -rw-r--r-- | src/audio_core/splitter_context.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/audio_core/splitter_context.cpp b/src/audio_core/splitter_context.cpp index c0be26be1..79bb2f516 100644 --- a/src/audio_core/splitter_context.cpp +++ b/src/audio_core/splitter_context.cpp | |||
| @@ -173,7 +173,7 @@ void SplitterContext::Initialize(BehaviorInfo& behavior_info, std::size_t _info_ | |||
| 173 | 173 | ||
| 174 | bool SplitterContext::Update(const std::vector<u8>& input, std::size_t& input_offset, | 174 | bool SplitterContext::Update(const std::vector<u8>& input, std::size_t& input_offset, |
| 175 | std::size_t& bytes_read) { | 175 | std::size_t& bytes_read) { |
| 176 | auto UpdateOffsets = [&](std::size_t read) { | 176 | const auto UpdateOffsets = [&](std::size_t read) { |
| 177 | input_offset += read; | 177 | input_offset += read; |
| 178 | bytes_read += read; | 178 | bytes_read += read; |
| 179 | }; | 179 | }; |
| @@ -286,7 +286,7 @@ void SplitterContext::Setup(std::size_t _info_count, std::size_t _data_count, | |||
| 286 | 286 | ||
| 287 | bool SplitterContext::UpdateInfo(const std::vector<u8>& input, std::size_t& input_offset, | 287 | bool SplitterContext::UpdateInfo(const std::vector<u8>& input, std::size_t& input_offset, |
| 288 | std::size_t& bytes_read, s32 in_splitter_count) { | 288 | std::size_t& bytes_read, s32 in_splitter_count) { |
| 289 | auto UpdateOffsets = [&](std::size_t read) { | 289 | const auto UpdateOffsets = [&](std::size_t read) { |
| 290 | input_offset += read; | 290 | input_offset += read; |
| 291 | bytes_read += read; | 291 | bytes_read += read; |
| 292 | }; | 292 | }; |
| @@ -326,7 +326,7 @@ bool SplitterContext::UpdateInfo(const std::vector<u8>& input, std::size_t& inpu | |||
| 326 | 326 | ||
| 327 | bool SplitterContext::UpdateData(const std::vector<u8>& input, std::size_t& input_offset, | 327 | bool SplitterContext::UpdateData(const std::vector<u8>& input, std::size_t& input_offset, |
| 328 | std::size_t& bytes_read, s32 in_data_count) { | 328 | std::size_t& bytes_read, s32 in_data_count) { |
| 329 | auto UpdateOffsets = [&](std::size_t read) { | 329 | const auto UpdateOffsets = [&](std::size_t read) { |
| 330 | input_offset += read; | 330 | input_offset += read; |
| 331 | bytes_read += read; | 331 | bytes_read += read; |
| 332 | }; | 332 | }; |
| @@ -412,9 +412,9 @@ bool SplitterContext::RecomposeDestination(ServerSplitterInfo& info, | |||
| 412 | NodeStates::NodeStates() = default; | 412 | NodeStates::NodeStates() = default; |
| 413 | NodeStates::~NodeStates() = default; | 413 | NodeStates::~NodeStates() = default; |
| 414 | 414 | ||
| 415 | void NodeStates::Initialize(std::size_t _node_count) { | 415 | void NodeStates::Initialize(std::size_t node_count_) { |
| 416 | // Setup our work parameters | 416 | // Setup our work parameters |
| 417 | node_count = _node_count; | 417 | node_count = node_count_; |
| 418 | was_node_found.resize(node_count); | 418 | was_node_found.resize(node_count); |
| 419 | was_node_completed.resize(node_count); | 419 | was_node_completed.resize(node_count); |
| 420 | index_list.resize(node_count); | 420 | index_list.resize(node_count); |