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

        Success = 0,

        DeviceNotFound = (1 << ErrorCodeShift) | ModuleId,
        OperationFailed = (2 << ErrorCodeShift) | ModuleId,
        UnsupportedSampleRate = (3 << ErrorCodeShift) | ModuleId,
        WorkBufferTooSmall = (4 << ErrorCodeShift) | ModuleId,
        BufferRingFull = (8 << ErrorCodeShift) | ModuleId,
        UnsupportedChannelConfiguration = (10 << ErrorCodeShift) | ModuleId,
        InvalidUpdateInfo = (41 << ErrorCodeShift) | ModuleId,
        InvalidAddressInfo = (42 << ErrorCodeShift) | ModuleId,
        InvalidMixSorting = (43 << ErrorCodeShift) | ModuleId,
        UnsupportedOperation = (513 << ErrorCodeShift) | ModuleId,
        InvalidExecutionContextOperation = (514 << ErrorCodeShift) | ModuleId,
    }
}