diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-03-05 16:45:22 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-03-05 16:51:37 -0500 |
| commit | ad9dbeb44b086b24e2c7e6d2dbc5c582cb0df7af (patch) | |
| tree | 3b7d33199157d96cb402a2908935190f207600c2 /src/core/hle/service/audio/errors.h | |
| parent | cc92c054ec825c7b40518fdc90a0c9a307567303 (diff) | |
hle/service/audio: Extract audio error codes to a header
Places all error codes in an easily includable header.
This also corrects the unsupported error code (I accidentally used the
hex value when I meant to use the decimal one).
Diffstat (limited to 'src/core/hle/service/audio/errors.h')
| -rw-r--r-- | src/core/hle/service/audio/errors.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/hle/service/audio/errors.h b/src/core/hle/service/audio/errors.h new file mode 100644 index 000000000..6f8c09bcf --- /dev/null +++ b/src/core/hle/service/audio/errors.h @@ -0,0 +1,15 @@ +// Copyright 2019 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/hle/result.h" + +namespace Service::Audio { + +constexpr ResultCode ERR_OPERATION_FAILED{ErrorModule::Audio, 2}; +constexpr ResultCode ERR_BUFFER_COUNT_EXCEEDED{ErrorModule::Audio, 8}; +constexpr ResultCode ERR_NOT_SUPPORTED{ErrorModule::Audio, 513}; + +} // namespace Service::Audio |
