mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-20 09:41:14 +02:00
Revert and reimplement Float BiquadFilterEffect support, fixes infinite load issues in a few games like Splatoon 3. Fix incorrect string check with the new thread naming system. Implement object pooling for all Audio Commands and a few other audio related objects and use a growing error list for updating wave buffers instead of always allocating space for 8 errors.
38 lines
992 B
C#
38 lines
992 B
C#
namespace Ryujinx.Audio.Renderer.Dsp.Command
|
|
{
|
|
public class CopyMixBufferCommand : ICommand
|
|
{
|
|
public bool Enabled { get; set; }
|
|
|
|
public int NodeId { get; private set; }
|
|
|
|
public CommandType CommandType => CommandType.CopyMixBuffer;
|
|
|
|
public uint EstimatedProcessingTime { get; set; }
|
|
|
|
public ushort InputBufferIndex { get; private set; }
|
|
public ushort OutputBufferIndex { get; private set; }
|
|
|
|
public CopyMixBufferCommand()
|
|
{
|
|
|
|
}
|
|
|
|
public CopyMixBufferCommand Initialize(uint inputBufferIndex, uint outputBufferIndex, int nodeId)
|
|
{
|
|
Enabled = true;
|
|
NodeId = nodeId;
|
|
|
|
InputBufferIndex = (ushort)inputBufferIndex;
|
|
OutputBufferIndex = (ushort)outputBufferIndex;
|
|
|
|
return this;
|
|
}
|
|
|
|
public void Process(CommandList context)
|
|
{
|
|
context.CopyBuffer(OutputBufferIndex, InputBufferIndex);
|
|
}
|
|
}
|
|
}
|