diff options
| author | 2022-07-16 23:48:45 +0100 | |
|---|---|---|
| committer | 2022-07-22 01:11:32 +0100 | |
| commit | 458da8a94877677f086f06cdeecf959ec4283a33 (patch) | |
| tree | 583166d77602ad90a0d552f37de8729ad80fd6c1 /src/audio_core/info_updater.h | |
| parent | Merge pull request #8598 from Link4565/recv-dontwait (diff) | |
| download | yuzu-458da8a94877677f086f06cdeecf959ec4283a33.tar.gz yuzu-458da8a94877677f086f06cdeecf959ec4283a33.tar.xz yuzu-458da8a94877677f086f06cdeecf959ec4283a33.zip | |
Project Andio
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 | ||