mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-28 03:23:05 +00:00
d4d0a48bfe
* Migrate audren to new IPC * Migrate audout * Migrate audin * Migrate hwopus * Bye bye old audio service * Switch volume control to IHardwareDeviceDriver * Somewhat unrelated changes * Remove Concentus reference from HLE * Implement OpenAudioRendererForManualExecution * Remove SetVolume/GetVolume methods that are not necessary * Remove SetVolume/GetVolume methods that are not necessary (2) * Fix incorrect volume update * PR feedback * PR feedback * Stub audrec * Init outParameter * Make FinalOutputRecorderParameter/Internal readonly * Make FinalOutputRecorder IDisposable * Fix HardwareOpusDecoderManager parameter buffers * Opus work buffer size and error handling improvements * Add AudioInProtocolName enum * Fix potential divisions by zero
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using LibHac;
|
|
using Ryujinx.Audio.Integration;
|
|
using Ryujinx.Cpu;
|
|
using Ryujinx.Horizon.Sdk.Account;
|
|
using Ryujinx.Horizon.Sdk.Fs;
|
|
|
|
namespace Ryujinx.Horizon
|
|
{
|
|
public readonly struct HorizonOptions
|
|
{
|
|
public bool IgnoreMissingServices { get; }
|
|
public bool ThrowOnInvalidCommandIds { get; }
|
|
|
|
public HorizonClient BcatClient { get; }
|
|
public IFsClient FsClient { get; }
|
|
public IEmulatorAccountManager AccountManager { get; }
|
|
public IHardwareDeviceDriver AudioDeviceDriver { get; }
|
|
public ITickSource TickSource { get; }
|
|
|
|
public HorizonOptions(
|
|
bool ignoreMissingServices,
|
|
HorizonClient bcatClient,
|
|
IFsClient fsClient,
|
|
IEmulatorAccountManager accountManager,
|
|
IHardwareDeviceDriver audioDeviceDriver,
|
|
ITickSource tickSource)
|
|
{
|
|
IgnoreMissingServices = ignoreMissingServices;
|
|
ThrowOnInvalidCommandIds = true;
|
|
BcatClient = bcatClient;
|
|
FsClient = fsClient;
|
|
AccountManager = accountManager;
|
|
AudioDeviceDriver = audioDeviceDriver;
|
|
TickSource = tickSource;
|
|
}
|
|
}
|
|
}
|