aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Audio/Renderer/Dsp/Command/ClearMixBufferCommand.cs
blob: 9e653e8047140603598eb8a7364a2d09fd521324 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace Ryujinx.Audio.Renderer.Dsp.Command
{
    public class ClearMixBufferCommand : ICommand
    {
        public bool Enabled { get; set; }

        public int NodeId { get; }

        public CommandType CommandType => CommandType.ClearMixBuffer;

        public uint EstimatedProcessingTime { get; set; }

        public ClearMixBufferCommand(int nodeId)
        {
            Enabled = true;
            NodeId = nodeId;
        }

        public void Process(CommandList context)
        {
            context.ClearBuffers();
        }
    }
}