2020-08-17 21:49:37 -04:00
|
|
|
namespace Ryujinx.Audio.Renderer.Dsp.Command
|
|
|
|
{
|
|
|
|
public class ClearMixBufferCommand : ICommand
|
|
|
|
{
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
|
|
|
|
public int NodeId { get; }
|
|
|
|
|
|
|
|
public CommandType CommandType => CommandType.ClearMixBuffer;
|
|
|
|
|
2022-11-28 02:28:45 -05:00
|
|
|
public uint EstimatedProcessingTime { get; set; }
|
2020-08-17 21:49:37 -04:00
|
|
|
|
|
|
|
public ClearMixBufferCommand(int nodeId)
|
|
|
|
{
|
|
|
|
Enabled = true;
|
|
|
|
NodeId = nodeId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Process(CommandList context)
|
|
|
|
{
|
2021-07-18 07:05:11 -04:00
|
|
|
context.ClearBuffers();
|
2020-08-17 21:49:37 -04:00
|
|
|
}
|
|
|
|
}
|
2022-07-25 14:46:33 -04:00
|
|
|
}
|