aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Audio/ResultCode.cs
blob: fd2091c2a6ccf3b6a1f2b41e0856fef0f7be53cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace Ryujinx.HLE.HOS.Services.Audio
{
    enum ResultCode
    {
        ModuleId       = 153,
        ErrorCodeShift = 9,

        Success = 0,

        DeviceNotFound        = (1 << ErrorCodeShift) | ModuleId,
        UnsupportedRevision   = (2 << ErrorCodeShift) | ModuleId,
        UnsupportedSampleRate = (3 << 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
    }
}