|
|
@@ -336,11 +336,12 @@ namespace Ryujinx.Audio.Renderer.Server
|
|
|
/// <param name="workBuffer">The work buffer to use for processing.</param>
|
|
|
/// <param name="nodeId">The node id associated to this command.</param>
|
|
|
/// <param name="isLongSizePreDelaySupported">If set to true, the long size pre-delay is supported.</param>
|
|
|
- public void GenerateReverbEffect(uint bufferOffset, ReverbParameter parameter, Memory<ReverbState> state, bool isEnabled, CpuAddress workBuffer, int nodeId, bool isLongSizePreDelaySupported)
|
|
|
+ /// <param name="newEffectChannelMappingSupported">If set to true, the new effect channel mapping for 5.1 is supported.</param>
|
|
|
+ public void GenerateReverbEffect(uint bufferOffset, ReverbParameter parameter, Memory<ReverbState> state, bool isEnabled, CpuAddress workBuffer, int nodeId, bool isLongSizePreDelaySupported, bool newEffectChannelMappingSupported)
|
|
|
{
|
|
|
if (parameter.IsChannelCountValid())
|
|
|
{
|
|
|
- ReverbCommand command = new ReverbCommand(bufferOffset, parameter, state, isEnabled, workBuffer, nodeId, isLongSizePreDelaySupported);
|
|
|
+ ReverbCommand command = new ReverbCommand(bufferOffset, parameter, state, isEnabled, workBuffer, nodeId, isLongSizePreDelaySupported, newEffectChannelMappingSupported);
|
|
|
|
|
|
command.EstimatedProcessingTime = _commandProcessingTimeEstimator.Estimate(command);
|
|
|
|
|
|
@@ -357,11 +358,12 @@ namespace Ryujinx.Audio.Renderer.Server
|
|
|
/// <param name="isEnabled">Set to true if the effect should be active.</param>
|
|
|
/// <param name="workBuffer">The work buffer to use for processing.</param>
|
|
|
/// <param name="nodeId">The node id associated to this command.</param>
|
|
|
- public void GenerateReverb3dEffect(uint bufferOffset, Reverb3dParameter parameter, Memory<Reverb3dState> state, bool isEnabled, CpuAddress workBuffer, int nodeId)
|
|
|
+ /// <param name="newEffectChannelMappingSupported">If set to true, the new effect channel mapping for 5.1 is supported.</param>
|
|
|
+ public void GenerateReverb3dEffect(uint bufferOffset, Reverb3dParameter parameter, Memory<Reverb3dState> state, bool isEnabled, CpuAddress workBuffer, int nodeId, bool newEffectChannelMappingSupported)
|
|
|
{
|
|
|
if (parameter.IsChannelCountValid())
|
|
|
{
|
|
|
- Reverb3dCommand command = new Reverb3dCommand(bufferOffset, parameter, state, isEnabled, workBuffer, nodeId);
|
|
|
+ Reverb3dCommand command = new Reverb3dCommand(bufferOffset, parameter, state, isEnabled, workBuffer, nodeId, newEffectChannelMappingSupported);
|
|
|
|
|
|
command.EstimatedProcessingTime = _commandProcessingTimeEstimator.Estimate(command);
|
|
|
|
|
|
@@ -379,11 +381,12 @@ namespace Ryujinx.Audio.Renderer.Server
|
|
|
/// <param name="isEnabled">Set to true if the effect should be active.</param>
|
|
|
/// <param name="workBuffer">The work buffer to use for processing.</param>
|
|
|
/// <param name="nodeId">The node id associated to this command.</param>
|
|
|
- public void GenerateDelayEffect(uint bufferOffset, DelayParameter parameter, Memory<DelayState> state, bool isEnabled, CpuAddress workBuffer, int nodeId)
|
|
|
+ /// <param name="newEffectChannelMappingSupported">If set to true, the new effect channel mapping for 5.1 is supported.</param>
|
|
|
+ public void GenerateDelayEffect(uint bufferOffset, DelayParameter parameter, Memory<DelayState> state, bool isEnabled, CpuAddress workBuffer, int nodeId, bool newEffectChannelMappingSupported)
|
|
|
{
|
|
|
if (parameter.IsChannelCountValid())
|
|
|
{
|
|
|
- DelayCommand command = new DelayCommand(bufferOffset, parameter, state, isEnabled, workBuffer, nodeId);
|
|
|
+ DelayCommand command = new DelayCommand(bufferOffset, parameter, state, isEnabled, workBuffer, nodeId, newEffectChannelMappingSupported);
|
|
|
|
|
|
command.EstimatedProcessingTime = _commandProcessingTimeEstimator.Estimate(command);
|
|
|
|