summaryrefslogtreecommitdiff
path: root/src/audio_core/stream.cpp
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/audio_core/stream.cpp
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/audio_core/stream.cpp')
-rw-r--r--src/audio_core/stream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp
index ee4aa98af..742a5e0a0 100644
--- a/src/audio_core/stream.cpp
+++ b/src/audio_core/stream.cpp
@@ -53,8 +53,8 @@ void Stream::Stop() {
53 ASSERT_MSG(false, "Unimplemented"); 53 ASSERT_MSG(false, "Unimplemented");
54} 54}
55 55
56u32 Stream::GetState() const { 56Stream::State Stream::GetState() const {
57 return static_cast<u32>(state); 57 return state;
58} 58}
59 59
60s64 Stream::GetBufferReleaseCycles(const Buffer& buffer) const { 60s64 Stream::GetBufferReleaseCycles(const Buffer& buffer) const {