2021-02-25 19:11:56 -05:00
|
|
|
namespace Ryujinx.Audio
|
2020-08-17 21:49:37 -04:00
|
|
|
{
|
|
|
|
public enum ResultCode
|
|
|
|
{
|
2022-07-25 14:46:33 -04:00
|
|
|
ModuleId = 153,
|
2020-08-17 21:49:37 -04:00
|
|
|
ErrorCodeShift = 9,
|
|
|
|
|
|
|
|
Success = 0,
|
|
|
|
|
2022-07-25 14:46:33 -04:00
|
|
|
DeviceNotFound = (1 << ErrorCodeShift) | ModuleId,
|
|
|
|
OperationFailed = (2 << ErrorCodeShift) | ModuleId,
|
|
|
|
UnsupportedSampleRate = (3 << ErrorCodeShift) | ModuleId,
|
|
|
|
WorkBufferTooSmall = (4 << ErrorCodeShift) | ModuleId,
|
|
|
|
BufferRingFull = (8 << ErrorCodeShift) | ModuleId,
|
2021-02-25 19:11:56 -05:00
|
|
|
UnsupportedChannelConfiguration = (10 << ErrorCodeShift) | ModuleId,
|
2022-07-25 14:46:33 -04:00
|
|
|
InvalidUpdateInfo = (41 << ErrorCodeShift) | ModuleId,
|
|
|
|
InvalidAddressInfo = (42 << ErrorCodeShift) | ModuleId,
|
|
|
|
InvalidMixSorting = (43 << ErrorCodeShift) | ModuleId,
|
|
|
|
UnsupportedOperation = (513 << ErrorCodeShift) | ModuleId,
|
2022-11-28 02:28:45 -05:00
|
|
|
InvalidExecutionContextOperation = (514 << ErrorCodeShift) | ModuleId,
|
2020-08-17 21:49:37 -04:00
|
|
|
}
|
2022-07-25 14:46:33 -04:00
|
|
|
}
|