From 2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 23 Sep 2018 20:01:02 -0400 Subject: 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. --- src/audio_core/stream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/audio_core/stream.cpp') 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() { ASSERT_MSG(false, "Unimplemented"); } -u32 Stream::GetState() const { - return static_cast(state); +Stream::State Stream::GetState() const { + return state; } s64 Stream::GetBufferReleaseCycles(const Buffer& buffer) const { -- cgit v1.2.3