diff options
Diffstat (limited to 'Ryujinx.HLE/Switch.cs')
-rw-r--r-- | Ryujinx.HLE/Switch.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs index 2306e5d3..865a86d7 100644 --- a/Ryujinx.HLE/Switch.cs +++ b/Ryujinx.HLE/Switch.cs @@ -1,5 +1,6 @@ using LibHac.FsSystem; -using Ryujinx.Audio; +using Ryujinx.Audio.Backends.CompatLayer; +using Ryujinx.Audio.Integration; using Ryujinx.Common; using Ryujinx.Configuration; using Ryujinx.Graphics.GAL; @@ -22,7 +23,7 @@ namespace Ryujinx.HLE { public class Switch : IDisposable { - public IAalOutput AudioOut { get; private set; } + public IHardwareDeviceDriver AudioDeviceDriver { get; private set; } internal MemoryBlock Memory { get; private set; } @@ -48,16 +49,16 @@ namespace Ryujinx.HLE public bool EnableDeviceVsync { get; set; } = true; - public Switch(VirtualFileSystem fileSystem, ContentManager contentManager, UserChannelPersistence userChannelPersistence, IRenderer renderer, IAalOutput audioOut) + public Switch(VirtualFileSystem fileSystem, ContentManager contentManager, UserChannelPersistence userChannelPersistence, IRenderer renderer, IHardwareDeviceDriver audioDeviceDriver) { if (renderer == null) { throw new ArgumentNullException(nameof(renderer)); } - if (audioOut == null) + if (audioDeviceDriver == null) { - throw new ArgumentNullException(nameof(audioOut)); + throw new ArgumentNullException(nameof(audioDeviceDriver)); } if (userChannelPersistence == null) @@ -67,7 +68,7 @@ namespace Ryujinx.HLE UserChannelPersistence = userChannelPersistence; - AudioOut = audioOut; + AudioDeviceDriver = new CompatLayerHardwareDeviceDriver(audioDeviceDriver); Memory = new MemoryBlock(1UL << 32); @@ -210,7 +211,7 @@ namespace Ryujinx.HLE System.Dispose(); Host1x.Dispose(); - AudioOut.Dispose(); + AudioDeviceDriver.Dispose(); FileSystem.Unload(); Memory.Dispose(); } |