diff options
Diffstat (limited to 'src/audio_core/info_updater.h')
| -rw-r--r-- | src/audio_core/info_updater.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/audio_core/info_updater.h b/src/audio_core/info_updater.h deleted file mode 100644 index 17e66b036..000000000 --- a/src/audio_core/info_updater.h +++ /dev/null | |||
| @@ -1,57 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include <vector> | ||
| 7 | #include "audio_core/common.h" | ||
| 8 | #include "common/common_types.h" | ||
| 9 | |||
| 10 | namespace AudioCore { | ||
| 11 | |||
| 12 | class BehaviorInfo; | ||
| 13 | class ServerMemoryPoolInfo; | ||
| 14 | class VoiceContext; | ||
| 15 | class EffectContext; | ||
| 16 | class MixContext; | ||
| 17 | class SinkContext; | ||
| 18 | class SplitterContext; | ||
| 19 | |||
| 20 | class InfoUpdater { | ||
| 21 | public: | ||
| 22 | // TODO(ogniK): Pass process handle when we support it | ||
| 23 | InfoUpdater(const std::vector<u8>& in_params_, std::vector<u8>& out_params_, | ||
| 24 | BehaviorInfo& behavior_info_); | ||
| 25 | ~InfoUpdater(); | ||
| 26 | |||
| 27 | bool UpdateBehaviorInfo(BehaviorInfo& in_behavior_info); | ||
| 28 | bool UpdateMemoryPools(std::vector<ServerMemoryPoolInfo>& memory_pool_info); | ||
| 29 | bool UpdateVoiceChannelResources(VoiceContext& voice_context); | ||
| 30 | bool UpdateVoices(VoiceContext& voice_context, | ||
| 31 | std::vector<ServerMemoryPoolInfo>& memory_pool_info, | ||
| 32 | VAddr audio_codec_dsp_addr); | ||
| 33 | bool UpdateEffects(EffectContext& effect_context, bool is_active); | ||
| 34 | bool UpdateSplitterInfo(SplitterContext& splitter_context); | ||
| 35 | Result UpdateMixes(MixContext& mix_context, std::size_t mix_buffer_count, | ||
| 36 | SplitterContext& splitter_context, EffectContext& effect_context); | ||
| 37 | bool UpdateSinks(SinkContext& sink_context); | ||
| 38 | bool UpdatePerformanceBuffer(); | ||
| 39 | bool UpdateErrorInfo(BehaviorInfo& in_behavior_info); | ||
| 40 | bool UpdateRendererInfo(std::size_t elapsed_frame_count); | ||
| 41 | bool CheckConsumedSize() const; | ||
| 42 | |||
| 43 | bool WriteOutputHeader(); | ||
| 44 | |||
| 45 | private: | ||
| 46 | const std::vector<u8>& in_params; | ||
| 47 | std::vector<u8>& out_params; | ||
| 48 | BehaviorInfo& behavior_info; | ||
| 49 | |||
| 50 | AudioCommon::UpdateDataHeader input_header{}; | ||
| 51 | AudioCommon::UpdateDataHeader output_header{}; | ||
| 52 | |||
| 53 | std::size_t input_offset{sizeof(AudioCommon::UpdateDataHeader)}; | ||
| 54 | std::size_t output_offset{sizeof(AudioCommon::UpdateDataHeader)}; | ||
| 55 | }; | ||
| 56 | |||
| 57 | } // namespace AudioCore | ||