ClearMixBufferCommand.cs 551 B

123456789101112131415161718192021222324
  1. namespace Ryujinx.Audio.Renderer.Dsp.Command
  2. {
  3. public class ClearMixBufferCommand : ICommand
  4. {
  5. public bool Enabled { get; set; }
  6. public int NodeId { get; }
  7. public CommandType CommandType => CommandType.ClearMixBuffer;
  8. public uint EstimatedProcessingTime { get; set; }
  9. public ClearMixBufferCommand(int nodeId)
  10. {
  11. Enabled = true;
  12. NodeId = nodeId;
  13. }
  14. public void Process(CommandList context)
  15. {
  16. context.ClearBuffers();
  17. }
  18. }
  19. }