namespace Ryujinx.Audio.Renderer.Server.Performance
{
/// <summary>
/// The header of a performance frame.
/// </summary>
public interface IPerformanceHeader
/// Get the entry count offset in this structure.
/// <returns>The entry count offset in this structure.</returns>
int GetEntryCountOffset();
/// Set the DSP running behind flag.
/// <param name="isRunningBehind">The flag.</param>
void SetDspRunningBehind(bool isRunningBehind);
/// Set the count of voices that were dropped.
/// <param name="voiceCount">The count of voices that were dropped.</param>
void SetVoiceDropCount(uint voiceCount);
/// Set the start ticks of the <see cref="Dsp.AudioProcessor"/>. (before sending commands)
/// <param name="startTicks">The start ticks of the <see cref="Dsp.AudioProcessor"/>. (before sending commands)</param>
void SetStartRenderingTicks(ulong startTicks);
/// Set the header magic.
/// <param name="magic">The header magic.</param>
void SetMagic(uint magic);
/// Set the offset of the next performance header.
/// <param name="nextOffset">The offset of the next performance header.</param>
void SetNextOffset(int nextOffset);
/// Set the total time taken by all the commands profiled.
/// <param name="totalProcessingTime">The total time taken by all the commands profiled.</param>
void SetTotalProcessingTime(int totalProcessingTime);
/// Set the index of this performance frame.
/// <param name="index">The index of this performance frame.</param>
void SetIndex(uint index);
/// Get the total count of entries in this frame.
/// <returns>The total count of entries in this frame.</returns>
int GetEntryCount();
/// Get the total count of detailed entries in this frame.
/// <returns>The total count of detailed entries in this frame.</returns>
int GetEntryDetailCount();
/// Set the total count of entries in this frame.
/// <param name="entryCount">The total count of entries in this frame.</param>
void SetEntryCount(int entryCount);
/// Set the total count of detailed entries in this frame.
/// <param name="entryDetailCount">The total count of detailed entries in this frame.</param>
void SetEntryDetailCount(int entryDetailCount);
}