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/icommand.h | |
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 'src/audio_core/renderer/command/icommand.h')
-rw-r--r-- | src/audio_core/renderer/command/icommand.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/audio_core/renderer/command/icommand.h b/src/audio_core/renderer/command/icommand.h index f2dd41254..10a78ddf2 100644 --- a/src/audio_core/renderer/command/icommand.h +++ b/src/audio_core/renderer/command/icommand.h @@ -3,14 +3,18 @@ #pragma once +#include <string> + #include "audio_core/common/common.h" #include "common/common_types.h" -namespace AudioCore::AudioRenderer { -namespace ADSP { +namespace AudioCore::ADSP::AudioRenderer { class CommandListProcessor; } +namespace AudioCore::Renderer { +using namespace ::AudioCore::ADSP; + enum class CommandId : u8 { /* 0x00 */ Invalid, /* 0x01 */ DataSourcePcmInt16Version1, @@ -59,14 +63,15 @@ struct ICommand { * @param processor - The CommandListProcessor processing this command. * @param string - The string to print into. */ - virtual void Dump(const ADSP::CommandListProcessor& processor, std::string& string) = 0; + virtual void Dump(const AudioRenderer::CommandListProcessor& processor, + std::string& string) = 0; /** * Process this command. * * @param processor - The CommandListProcessor processing this command. */ - virtual void Process(const ADSP::CommandListProcessor& processor) = 0; + virtual void Process(const AudioRenderer::CommandListProcessor& processor) = 0; /** * Verify this command's data is valid. @@ -74,7 +79,7 @@ struct ICommand { * @param processor - The CommandListProcessor processing this command. * @return True if the command is valid, otherwise false. */ - virtual bool Verify(const ADSP::CommandListProcessor& processor) = 0; + virtual bool Verify(const AudioRenderer::CommandListProcessor& processor) = 0; /// Command magic 0xCAFEBABE u32 magic{}; @@ -90,4 +95,4 @@ struct ICommand { u32 node_id{}; }; -} // namespace AudioCore::AudioRenderer +} // namespace AudioCore::Renderer |