suyu/src/audio_core/device/audio_buffer.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
626 B
C++
Raw Normal View History

2022-07-17 00:48:45 +02:00
// 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 AudioBuffer {
/// Timestamp this buffer started playing.
u64 start_timestamp;
/// Timestamp this buffer should finish playing.
u64 end_timestamp;
2022-07-17 00:48:45 +02:00
/// Timestamp this buffer completed playing.
s64 played_timestamp;
/// Game memory address for these samples.
VAddr samples;
2023-03-12 04:10:38 +01:00
/// Unique identifier for this buffer.
2022-07-17 00:48:45 +02:00
u64 tag;
/// Size of the samples buffer.
u64 size;
};
} // namespace AudioCore