summaryrefslogtreecommitdiff
path: root/src/audio_core/stream.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-27 17:05:03 -0400
committerGitHub <noreply@github.com>2018-09-27 17:05:03 -0400
commitfc2419e441dbd2270460c8fe7a92e515c0789fa5 (patch)
treeb424962d98ee97013c5c67ef8913c4a2aaf9e0c2 /src/audio_core/stream.cpp
parent29ff84ea99f0f24fd1c91f187a7894f77c4da416 (diff)
parent2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63 (diff)
Merge pull request #1394 from lioncash/stream
stream: Preserve enum class type in GetState()
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() {
ASSERT_MSG(false, "Unimplemented");
}
-u32 Stream::GetState() const {
- return static_cast<u32>(state);
+Stream::State Stream::GetState() const {
+ return state;
}
s64 Stream::GetBufferReleaseCycles(const Buffer& buffer) const {