diff options
Diffstat (limited to 'src/audio_core')
| -rw-r--r-- | src/audio_core/audio_renderer.cpp | 8 | ||||
| -rw-r--r-- | src/audio_core/audio_renderer.h | 8 | ||||
| -rw-r--r-- | src/audio_core/common.h | 4 | ||||
| -rw-r--r-- | src/audio_core/info_updater.cpp | 5 | ||||
| -rw-r--r-- | src/audio_core/info_updater.h | 4 |
5 files changed, 14 insertions, 15 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp index e40ab16d2..2ee0a96ed 100644 --- a/src/audio_core/audio_renderer.cpp +++ b/src/audio_core/audio_renderer.cpp | |||
| @@ -98,13 +98,13 @@ AudioRenderer::AudioRenderer(Core::Timing::CoreTiming& core_timing_, Core::Memor | |||
| 98 | 98 | ||
| 99 | AudioRenderer::~AudioRenderer() = default; | 99 | AudioRenderer::~AudioRenderer() = default; |
| 100 | 100 | ||
| 101 | ResultCode AudioRenderer::Start() { | 101 | Result AudioRenderer::Start() { |
| 102 | audio_out->StartStream(stream); | 102 | audio_out->StartStream(stream); |
| 103 | ReleaseAndQueueBuffers(); | 103 | ReleaseAndQueueBuffers(); |
| 104 | return ResultSuccess; | 104 | return ResultSuccess; |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | ResultCode AudioRenderer::Stop() { | 107 | Result AudioRenderer::Stop() { |
| 108 | audio_out->StopStream(stream); | 108 | audio_out->StopStream(stream); |
| 109 | return ResultSuccess; | 109 | return ResultSuccess; |
| 110 | } | 110 | } |
| @@ -125,8 +125,8 @@ Stream::State AudioRenderer::GetStreamState() const { | |||
| 125 | return stream->GetState(); | 125 | return stream->GetState(); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | ResultCode AudioRenderer::UpdateAudioRenderer(const std::vector<u8>& input_params, | 128 | Result AudioRenderer::UpdateAudioRenderer(const std::vector<u8>& input_params, |
| 129 | std::vector<u8>& output_params) { | 129 | std::vector<u8>& output_params) { |
| 130 | std::scoped_lock lock{mutex}; | 130 | std::scoped_lock lock{mutex}; |
| 131 | InfoUpdater info_updater{input_params, output_params, behavior_info}; | 131 | InfoUpdater info_updater{input_params, output_params, behavior_info}; |
| 132 | 132 | ||
diff --git a/src/audio_core/audio_renderer.h b/src/audio_core/audio_renderer.h index 1f9f55ae2..a67ffd592 100644 --- a/src/audio_core/audio_renderer.h +++ b/src/audio_core/audio_renderer.h | |||
| @@ -43,10 +43,10 @@ public: | |||
| 43 | Stream::ReleaseCallback&& release_callback, std::size_t instance_number); | 43 | Stream::ReleaseCallback&& release_callback, std::size_t instance_number); |
| 44 | ~AudioRenderer(); | 44 | ~AudioRenderer(); |
| 45 | 45 | ||
| 46 | [[nodiscard]] ResultCode UpdateAudioRenderer(const std::vector<u8>& input_params, | 46 | [[nodiscard]] Result UpdateAudioRenderer(const std::vector<u8>& input_params, |
| 47 | std::vector<u8>& output_params); | 47 | std::vector<u8>& output_params); |
| 48 | [[nodiscard]] ResultCode Start(); | 48 | [[nodiscard]] Result Start(); |
| 49 | [[nodiscard]] ResultCode Stop(); | 49 | [[nodiscard]] Result Stop(); |
| 50 | void QueueMixedBuffer(Buffer::Tag tag); | 50 | void QueueMixedBuffer(Buffer::Tag tag); |
| 51 | void ReleaseAndQueueBuffers(); | 51 | void ReleaseAndQueueBuffers(); |
| 52 | [[nodiscard]] u32 GetSampleRate() const; | 52 | [[nodiscard]] u32 GetSampleRate() const; |
diff --git a/src/audio_core/common.h b/src/audio_core/common.h index 46ef83113..056a0ac70 100644 --- a/src/audio_core/common.h +++ b/src/audio_core/common.h | |||
| @@ -10,8 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | namespace AudioCommon { | 11 | namespace AudioCommon { |
| 12 | namespace Audren { | 12 | namespace Audren { |
| 13 | constexpr ResultCode ERR_INVALID_PARAMETERS{ErrorModule::Audio, 41}; | 13 | constexpr Result ERR_INVALID_PARAMETERS{ErrorModule::Audio, 41}; |
| 14 | constexpr ResultCode ERR_SPLITTER_SORT_FAILED{ErrorModule::Audio, 43}; | 14 | constexpr Result ERR_SPLITTER_SORT_FAILED{ErrorModule::Audio, 43}; |
| 15 | } // namespace Audren | 15 | } // namespace Audren |
| 16 | 16 | ||
| 17 | constexpr u8 BASE_REVISION = '0'; | 17 | constexpr u8 BASE_REVISION = '0'; |
diff --git a/src/audio_core/info_updater.cpp b/src/audio_core/info_updater.cpp index 313a2eb6d..0065e6e53 100644 --- a/src/audio_core/info_updater.cpp +++ b/src/audio_core/info_updater.cpp | |||
| @@ -285,9 +285,8 @@ bool InfoUpdater::UpdateSplitterInfo(SplitterContext& splitter_context) { | |||
| 285 | return true; | 285 | return true; |
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | ResultCode InfoUpdater::UpdateMixes(MixContext& mix_context, std::size_t mix_buffer_count, | 288 | Result InfoUpdater::UpdateMixes(MixContext& mix_context, std::size_t mix_buffer_count, |
| 289 | SplitterContext& splitter_context, | 289 | SplitterContext& splitter_context, EffectContext& effect_context) { |
| 290 | EffectContext& effect_context) { | ||
| 291 | std::vector<MixInfo::InParams> mix_in_params; | 290 | std::vector<MixInfo::InParams> mix_in_params; |
| 292 | 291 | ||
| 293 | if (!behavior_info.IsMixInParameterDirtyOnlyUpdateSupported()) { | 292 | if (!behavior_info.IsMixInParameterDirtyOnlyUpdateSupported()) { |
diff --git a/src/audio_core/info_updater.h b/src/audio_core/info_updater.h index 6aab5beaf..17e66b036 100644 --- a/src/audio_core/info_updater.h +++ b/src/audio_core/info_updater.h | |||
| @@ -32,8 +32,8 @@ public: | |||
| 32 | VAddr audio_codec_dsp_addr); | 32 | VAddr audio_codec_dsp_addr); |
| 33 | bool UpdateEffects(EffectContext& effect_context, bool is_active); | 33 | bool UpdateEffects(EffectContext& effect_context, bool is_active); |
| 34 | bool UpdateSplitterInfo(SplitterContext& splitter_context); | 34 | bool UpdateSplitterInfo(SplitterContext& splitter_context); |
| 35 | ResultCode UpdateMixes(MixContext& mix_context, std::size_t mix_buffer_count, | 35 | Result UpdateMixes(MixContext& mix_context, std::size_t mix_buffer_count, |
| 36 | SplitterContext& splitter_context, EffectContext& effect_context); | 36 | SplitterContext& splitter_context, EffectContext& effect_context); |
| 37 | bool UpdateSinks(SinkContext& sink_context); | 37 | bool UpdateSinks(SinkContext& sink_context); |
| 38 | bool UpdatePerformanceBuffer(); | 38 | bool UpdatePerformanceBuffer(); |
| 39 | bool UpdateErrorInfo(BehaviorInfo& in_behavior_info); | 39 | bool UpdateErrorInfo(BehaviorInfo& in_behavior_info); |