diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-05 22:45:22 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-05 22:51:37 +0100 |
commit | ad9dbeb44b086b24e2c7e6d2dbc5c582cb0df7af (patch) | |
tree | 3b7d33199157d96cb402a2908935190f207600c2 /src/core/hle/service/audio/audout_u.cpp | |
parent | Merge pull request #2185 from FearlessTobi/port-4630 (diff) | |
download | yuzu-ad9dbeb44b086b24e2c7e6d2dbc5c582cb0df7af.tar yuzu-ad9dbeb44b086b24e2c7e6d2dbc5c582cb0df7af.tar.gz yuzu-ad9dbeb44b086b24e2c7e6d2dbc5c582cb0df7af.tar.bz2 yuzu-ad9dbeb44b086b24e2c7e6d2dbc5c582cb0df7af.tar.lz yuzu-ad9dbeb44b086b24e2c7e6d2dbc5c582cb0df7af.tar.xz yuzu-ad9dbeb44b086b24e2c7e6d2dbc5c582cb0df7af.tar.zst yuzu-ad9dbeb44b086b24e2c7e6d2dbc5c582cb0df7af.zip |
Diffstat (limited to 'src/core/hle/service/audio/audout_u.cpp')
-rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index 6831c0735..1c04d21cf 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp @@ -18,17 +18,11 @@ #include "core/hle/kernel/readable_event.h" #include "core/hle/kernel/writable_event.h" #include "core/hle/service/audio/audout_u.h" +#include "core/hle/service/audio/errors.h" #include "core/memory.h" namespace Service::Audio { -namespace ErrCodes { -enum { - ErrorUnknown = 2, - BufferCountExceeded = 8, -}; -} - constexpr std::array<char, 10> DefaultDevice{{"DeviceOut"}}; constexpr int DefaultSampleRate{48000}; @@ -100,7 +94,7 @@ private: if (stream->IsPlaying()) { IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(ResultCode(ErrorModule::Audio, ErrCodes::ErrorUnknown)); + rb.Push(ERR_OPERATION_FAILED); return; } @@ -143,7 +137,7 @@ private: if (!audio_core.QueueBuffer(stream, tag, std::move(samples))) { IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(ResultCode(ErrorModule::Audio, ErrCodes::BufferCountExceeded)); + rb.Push(ERR_BUFFER_COUNT_EXCEEDED); } IPC::ResponseBuilder rb{ctx, 2}; |