2020-08-18 01:49:37 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace Ryujinx.Audio.Renderer.Dsp.Command
|
|
|
|
{
|
|
|
|
public class CopyMixBufferCommand : ICommand
|
|
|
|
{
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
|
|
|
|
public int NodeId { get; }
|
|
|
|
|
|
|
|
public CommandType CommandType => CommandType.CopyMixBuffer;
|
|
|
|
|
|
|
|
public ulong EstimatedProcessingTime { get; set; }
|
|
|
|
|
|
|
|
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 11:05:11 +00:00
|
|
|
context.CopyBuffer(OutputBufferIndex, InputBufferIndex);
|
2020-08-18 01:49:37 +00:00
|
|
|
}
|
|
|
|
}
|
2022-07-25 18:46:33 +00:00
|
|
|
}
|