summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2018-09-23 20:01:02 -0400
committerGravatar Lioncash2018-09-23 20:03:38 -0400
commit2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63 (patch)
tree52a37fb98b002943669ab96ad1bdecd3cd42f6d9 /src/core
parentAdded glObjectLabels for renderdoc for textures and shader programs (#1384) (diff)
downloadyuzu-2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63.tar.gz
yuzu-2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63.tar.xz
yuzu-2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63.zip
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.cpp2
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:
65 void GetAudioRendererState(Kernel::HLERequestContext& ctx) { 65 void GetAudioRendererState(Kernel::HLERequestContext& ctx) {
66 IPC::ResponseBuilder rb{ctx, 3}; 66 IPC::ResponseBuilder rb{ctx, 3};
67 rb.Push(RESULT_SUCCESS); 67 rb.Push(RESULT_SUCCESS);
68 rb.Push<u32>(renderer->GetState()); 68 rb.Push<u32>(static_cast<u32>(renderer->GetStreamState()));
69 LOG_DEBUG(Service_Audio, "called"); 69 LOG_DEBUG(Service_Audio, "called");
70 } 70 }
71 71