IPerformanceHeader.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. namespace Ryujinx.Audio.Renderer.Server.Performance
  2. {
  3. /// <summary>
  4. /// The header of a performance frame.
  5. /// </summary>
  6. public interface IPerformanceHeader
  7. {
  8. /// <summary>
  9. /// Get the entry count offset in this structure.
  10. /// </summary>
  11. /// <returns>The entry count offset in this structure.</returns>
  12. int GetEntryCountOffset();
  13. /// <summary>
  14. /// Set the DSP running behind flag.
  15. /// </summary>
  16. /// <param name="isRunningBehind">The flag.</param>
  17. void SetDspRunningBehind(bool isRunningBehind);
  18. /// <summary>
  19. /// Set the count of voices that were dropped.
  20. /// </summary>
  21. /// <param name="voiceCount">The count of voices that were dropped.</param>
  22. void SetVoiceDropCount(uint voiceCount);
  23. /// <summary>
  24. /// Set the start ticks of the <see cref="Dsp.AudioProcessor"/>. (before sending commands)
  25. /// </summary>
  26. /// <param name="startTicks">The start ticks of the <see cref="Dsp.AudioProcessor"/>. (before sending commands)</param>
  27. void SetStartRenderingTicks(ulong startTicks);
  28. /// <summary>
  29. /// Set the header magic.
  30. /// </summary>
  31. /// <param name="magic">The header magic.</param>
  32. void SetMagic(uint magic);
  33. /// <summary>
  34. /// Set the offset of the next performance header.
  35. /// </summary>
  36. /// <param name="nextOffset">The offset of the next performance header.</param>
  37. void SetNextOffset(int nextOffset);
  38. /// <summary>
  39. /// Set the total time taken by all the commands profiled.
  40. /// </summary>
  41. /// <param name="totalProcessingTime">The total time taken by all the commands profiled.</param>
  42. void SetTotalProcessingTime(int totalProcessingTime);
  43. /// <summary>
  44. /// Set the index of this performance frame.
  45. /// </summary>
  46. /// <param name="index">The index of this performance frame.</param>
  47. void SetIndex(uint index);
  48. /// <summary>
  49. /// Get the total count of entries in this frame.
  50. /// </summary>
  51. /// <returns>The total count of entries in this frame.</returns>
  52. int GetEntryCount();
  53. /// <summary>
  54. /// Get the total count of detailed entries in this frame.
  55. /// </summary>
  56. /// <returns>The total count of detailed entries in this frame.</returns>
  57. int GetEntryDetailCount();
  58. /// <summary>
  59. /// Set the total count of entries in this frame.
  60. /// </summary>
  61. /// <param name="entryCount">The total count of entries in this frame.</param>
  62. void SetEntryCount(int entryCount);
  63. /// <summary>
  64. /// Set the total count of detailed entries in this frame.
  65. /// </summary>
  66. /// <param name="entryDetailCount">The total count of detailed entries in this frame.</param>
  67. void SetEntryDetailCount(int entryDetailCount);
  68. }
  69. }