summaryrefslogtreecommitdiffstats
path: root/src/audio_core/common/wave_buffer.h
blob: fc478ef798e42e6dd7edb0b54ca0b9835c40e3c8 (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
29
30
31
32
33
34
35
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "common/common_types.h"

namespace AudioCore {

struct WaveBufferVersion1 {
    CpuAddr buffer;
    u64 buffer_size;
    u32 start_offset;
    u32 end_offset;
    bool loop;
    bool stream_ended;
    CpuAddr context;
    u64 context_size;
};

struct WaveBufferVersion2 {
    CpuAddr buffer;
    CpuAddr context;
    u64 buffer_size;
    u64 context_size;
    u32 start_offset;
    u32 end_offset;
    u32 loop_start_offset;
    u32 loop_end_offset;
    s32 loop_count;
    bool loop;
    bool stream_ended;
};

} // namespace AudioCore