mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-12 10:37:06 +00: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.
31 lines
675 B
C#
31 lines
675 B
C#
namespace Ryujinx.Audio.Renderer.Dsp.Command
|
|
{
|
|
public class ClearMixBufferCommand : ICommand
|
|
{
|
|
public bool Enabled { get; set; }
|
|
|
|
public int NodeId { get; private set; }
|
|
|
|
public CommandType CommandType => CommandType.ClearMixBuffer;
|
|
|
|
public uint EstimatedProcessingTime { get; set; }
|
|
|
|
public ClearMixBufferCommand()
|
|
{
|
|
|
|
}
|
|
|
|
public ClearMixBufferCommand Initialize(int nodeId)
|
|
{
|
|
Enabled = true;
|
|
NodeId = nodeId;
|
|
|
|
return this;
|
|
}
|
|
|
|
public void Process(CommandList context)
|
|
{
|
|
context.ClearBuffers();
|
|
}
|
|
}
|
|
}
|