Skip to content

Commit

Permalink
ava: Cleanup AppHost (#4240)
Browse files Browse the repository at this point in the history
* ava: Cleanup AppHost

This PR cleaned up the AppHost file a bit (adding the infamous extra spaces to improve readability), resorting private vars, remove useless vars, and improve the code here and there, like the AudioBackend check.

Co-Authored-By: gdkchan <[email protected]>

* Remove 'renderer"

* Revert currentTime

* revert if condition

Co-authored-by: gdkchan <[email protected]>
  • Loading branch information
AcK77 and gdkchan authored Jan 10, 2023
1 parent 3e455a9 commit a16854e
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public class CompatLayerHardwareDeviceDriver : IHardwareDeviceDriver
{
private IHardwareDeviceDriver _realDriver;

public static bool IsSupported => true;

public CompatLayerHardwareDeviceDriver(IHardwareDeviceDriver realDevice)
{
_realDriver = realDevice;
Expand Down
2 changes: 2 additions & 0 deletions Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class DummyHardwareDeviceDriver : IHardwareDeviceDriver
private ManualResetEvent _updateRequiredEvent;
private ManualResetEvent _pauseEvent;

public static bool IsSupported => true;

public DummyHardwareDeviceDriver()
{
_updateRequiredEvent = new ManualResetEvent(false);
Expand Down
2 changes: 2 additions & 0 deletions Ryujinx.Audio/Integration/IHardwareDeviceDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public enum Direction
bool SupportsSampleFormat(SampleFormat sampleFormat);
bool SupportsChannelCount(uint channelCount);

static abstract bool IsSupported { get; }

IHardwareDeviceDriver GetRealDeviceDriver()
{
return this;
Expand Down
Loading

0 comments on commit a16854e

Please sign in to comment.