suyu/src/audio_core/renderer/performance/performance_frame_header.h
2023-03-12 11:33:01 -04:00

37 lines
1.1 KiB
C++

// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "common/common_types.h"
namespace AudioCore::AudioRenderer {
struct PerformanceFrameHeaderVersion1 {
/* 0x00 */ u32 magic; // "PERF"
/* 0x04 */ u32 entry_count;
/* 0x08 */ u32 detail_count;
/* 0x0C */ u32 next_offset;
/* 0x10 */ u32 total_processing_time;
/* 0x14 */ u32 frame_index;
};
static_assert(sizeof(PerformanceFrameHeaderVersion1) == 0x18,
"PerformanceFrameHeaderVersion1 has the wrong size!");
struct PerformanceFrameHeaderVersion2 {
/* 0x00 */ u32 magic; // "PERF"
/* 0x04 */ u32 entry_count;
/* 0x08 */ u32 detail_count;
/* 0x0C */ u32 next_offset;
/* 0x10 */ u32 total_processing_time;
/* 0x14 */ u32 voices_dropped;
/* 0x18 */ u64 start_time;
/* 0x20 */ u32 frame_index;
/* 0x24 */ bool render_time_exceeded;
/* 0x25 */ char unk25[0xB];
};
static_assert(sizeof(PerformanceFrameHeaderVersion2) == 0x30,
"PerformanceFrameHeaderVersion2 has the wrong size!");
} // namespace AudioCore::AudioRenderer