2020-08-17 18:49:37 -07:00
|
|
|
namespace Ryujinx.Audio.Renderer.Dsp.Command
|
|
|
|
{
|
|
|
|
public class CopyMixBufferCommand : ICommand
|
|
|
|
{
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
|
|
|
|
public int NodeId { get; }
|
|
|
|
|
|
|
|
public CommandType CommandType => CommandType.CopyMixBuffer;
|
|
|
|
|
2022-11-27 23:28:45 -08:00
|
|
|
public uint EstimatedProcessingTime { get; set; }
|
2020-08-17 18:49:37 -07:00
|
|
|
|
|
|
|
public ushort InputBufferIndex { get; }
|
|
|
|
public ushort OutputBufferIndex { get; }
|
|
|
|
|
|
|
|
public CopyMixBufferCommand(uint inputBufferIndex, uint outputBufferIndex, int nodeId)
|
|
|
|
{
|
|
|
|
Enabled = true;
|
|
|
|
NodeId = nodeId;
|
|
|
|
|
|
|
|
InputBufferIndex = (ushort)inputBufferIndex;
|
|
|
|
OutputBufferIndex = (ushort)outputBufferIndex;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Process(CommandList context)
|
|
|
|
{
|
2021-07-18 04:05:11 -07:00
|
|
|
context.CopyBuffer(OutputBufferIndex, InputBufferIndex);
|
2020-08-17 18:49:37 -07:00
|
|
|
}
|
|
|
|
}
|
2022-07-25 11:46:33 -07:00
|
|
|
}
|