summaryrefslogtreecommitdiffstats
path: root/src/audio_core/adsp/apps/audio_renderer/command_buffer.h
blob: d6a721f3474c7ccb1062b3e8286867d7a86b0b5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "audio_core/common/common.h"
#include "common/common_types.h"

namespace Kernel {
class KProcess;
}

namespace AudioCore::ADSP::AudioRenderer {

struct CommandBuffer {
    // Set by the host
    CpuAddr buffer{};
    u64 size{};
    u64 time_limit{};
    u64 applet_resource_user_id{};
    Kernel::KProcess* process{};
    bool reset_buffer{};
    // Set by the DSP
    u32 remaining_command_count{};
    u64 render_time_taken_us{};
};

} // namespace AudioCore::ADSP::AudioRenderer