diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-23 20:01:02 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-23 20:03:38 -0400 |
commit | 2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63 (patch) | |
tree | 52a37fb98b002943669ab96ad1bdecd3cd42f6d9 /src/core | |
parent | 9f3fc067bf6fd1a26f48213e73f32f1635cbd04d (diff) |
stream: Preserve enum class type in GetState()
Preserves the meaning/type-safetiness of the stream state instead of
making it an opaque u32. This makes it usable for other things outside
of the service HLE context.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 80ed4b152..1258de510 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -65,7 +65,7 @@ private: void GetAudioRendererState(Kernel::HLERequestContext& ctx) { IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push<u32>(renderer->GetState()); + rb.Push<u32>(static_cast<u32>(renderer->GetStreamState())); LOG_DEBUG(Service_Audio, "called"); } |