From ad9dbeb44b086b24e2c7e6d2dbc5c582cb0df7af Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 5 Mar 2019 16:45:22 -0500 Subject: 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). --- src/core/hle/service/audio/errors.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/core/hle/service/audio/errors.h (limited to 'src/core/hle/service/audio/errors.h') 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 -- cgit v1.2.3