diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-09-06 15:13:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 15:13:06 +0200 |
commit | 69949e7964effcdfc5f101cadaf95d7c430ae677 (patch) | |
tree | 30961426a1e754309e1bf8760df1fea4e51bdef8 /src/audio_core/renderer/command/mix/volume.cpp | |
parent | Merge pull request #11434 from danilaml/fix-warnings (diff) | |
parent | Rework ADSP into a wrapper for apps (diff) | |
download | yuzu-69949e7964effcdfc5f101cadaf95d7c430ae677.tar yuzu-69949e7964effcdfc5f101cadaf95d7c430ae677.tar.gz yuzu-69949e7964effcdfc5f101cadaf95d7c430ae677.tar.bz2 yuzu-69949e7964effcdfc5f101cadaf95d7c430ae677.tar.lz yuzu-69949e7964effcdfc5f101cadaf95d7c430ae677.tar.xz yuzu-69949e7964effcdfc5f101cadaf95d7c430ae677.tar.zst yuzu-69949e7964effcdfc5f101cadaf95d7c430ae677.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/renderer/command/mix/volume.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/audio_core/renderer/command/mix/volume.cpp b/src/audio_core/renderer/command/mix/volume.cpp index b045fb062..92baf6cc3 100644 --- a/src/audio_core/renderer/command/mix/volume.cpp +++ b/src/audio_core/renderer/command/mix/volume.cpp @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#include "audio_core/renderer/adsp/command_list_processor.h" +#include "audio_core/adsp/apps/audio_renderer/command_list_processor.h" #include "audio_core/renderer/command/mix/volume.h" #include "common/fixed_point.h" #include "common/logging/log.h" -namespace AudioCore::AudioRenderer { +namespace AudioCore::Renderer { /** * Apply volume to the input mix buffer, saving to the output buffer. * @@ -29,7 +29,7 @@ static void ApplyUniformGain(std::span<s32> output, std::span<const s32> input, } } -void VolumeCommand::Dump([[maybe_unused]] const ADSP::CommandListProcessor& processor, +void VolumeCommand::Dump([[maybe_unused]] const AudioRenderer::CommandListProcessor& processor, std::string& string) { string += fmt::format("VolumeCommand"); string += fmt::format("\n\tinput {:02X}", input_index); @@ -38,7 +38,7 @@ void VolumeCommand::Dump([[maybe_unused]] const ADSP::CommandListProcessor& proc string += "\n"; } -void VolumeCommand::Process(const ADSP::CommandListProcessor& processor) { +void VolumeCommand::Process(const AudioRenderer::CommandListProcessor& processor) { // If input and output buffers are the same, and the volume is 1.0f, this won't do // anything, so just skip. if (input_index == output_index && volume == 1.0f) { @@ -65,8 +65,8 @@ void VolumeCommand::Process(const ADSP::CommandListProcessor& processor) { } } -bool VolumeCommand::Verify(const ADSP::CommandListProcessor& processor) { +bool VolumeCommand::Verify(const AudioRenderer::CommandListProcessor& processor) { return true; } -} // namespace AudioCore::AudioRenderer +} // namespace AudioCore::Renderer |