diff options
| author | TSR Berry <20988865+TSRBerry@users.noreply.github.com> | 2023-04-08 01:22:00 +0200 |
|---|---|---|
| committer | Mary <thog@protonmail.com> | 2023-04-27 23:51:14 +0200 |
| commit | cee712105850ac3385cd0091a923438167433f9f (patch) | |
| tree | 4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion4.cs | |
| parent | cd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff) | |
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion4.cs')
| -rw-r--r-- | Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion4.cs | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion4.cs b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion4.cs deleted file mode 100644 index c60d8ebc..00000000 --- a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion4.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Ryujinx.Audio.Renderer.Dsp.Command; -using System.Diagnostics; - -namespace Ryujinx.Audio.Renderer.Server -{ - /// <summary> - /// <see cref="ICommandProcessingTimeEstimator"/> version 4. (added with REV10) - /// </summary> - public class CommandProcessingTimeEstimatorVersion4 : CommandProcessingTimeEstimatorVersion3 - { - public CommandProcessingTimeEstimatorVersion4(uint sampleCount, uint bufferCount) : base(sampleCount, bufferCount) { } - - public override uint Estimate(GroupedBiquadFilterCommand command) - { - Debug.Assert(_sampleCount == 160 || _sampleCount == 240); - - if (_sampleCount == 160) - { - return (uint)7424.5f; - } - - return (uint)9730.4f; - } - - public override uint Estimate(CaptureBufferCommand command) - { - Debug.Assert(_sampleCount == 160 || _sampleCount == 240); - - if (_sampleCount == 160) - { - if (command.Enabled) - { - return (uint)435.2f; - } - - return (uint)4261.0f; - } - - if (command.Enabled) - { - return (uint)5858.26f; - } - - return (uint)435.2f; - } - } -}
\ No newline at end of file |
