From b0f0bd205dc1664aa18cb2fa61eeac929e779d36 Mon Sep 17 00:00:00 2001 From: VolcaEM <63682805+VolcaEM@users.noreply.github.com> Date: Sun, 3 May 2020 22:45:22 +0200 Subject: [PATCH] Add various error codes to Audio (#1201) The error codes were taken from Switchbrew (switchbrew.org/wiki/Error_codes) --- Ryujinx.HLE/HOS/Services/Audio/ResultCode.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Audio/ResultCode.cs b/Ryujinx.HLE/HOS/Services/Audio/ResultCode.cs index 5bba3582fb..fd2091c2a6 100644 --- a/Ryujinx.HLE/HOS/Services/Audio/ResultCode.cs +++ b/Ryujinx.HLE/HOS/Services/Audio/ResultCode.cs @@ -10,6 +10,12 @@ namespace Ryujinx.HLE.HOS.Services.Audio DeviceNotFound = (1 << ErrorCodeShift) | ModuleId, UnsupportedRevision = (2 << ErrorCodeShift) | ModuleId, UnsupportedSampleRate = (3 << ErrorCodeShift) | ModuleId, - OpusInvalidInput = (6 << ErrorCodeShift) | ModuleId + BufferSizeTooSmall = (4 << ErrorCodeShift) | ModuleId, + OpusInvalidInput = (6 << ErrorCodeShift) | ModuleId, + TooManyBuffersInUse = (8 << ErrorCodeShift) | ModuleId, + InvalidChannelCount = (10 << ErrorCodeShift) | ModuleId, + InvalidOperation = (513 << ErrorCodeShift) | ModuleId, + InvalidHandle = (1536 << ErrorCodeShift) | ModuleId, + OutputAlreadyStarted = (1540 << ErrorCodeShift) | ModuleId } -} \ No newline at end of file +}