aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Audio/Renderer/Dsp/Command/ClearMixBufferCommand.cs
blob: f0f85b0b28220be042dedc1463b43b30bdeafd96 (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();
        }
    }
}