summaryrefslogtreecommitdiffstats
path: root/src/audio_core/stream.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-27 23:05:03 +0200
committerGitHub <noreply@github.com>2018-09-27 23:05:03 +0200
commitfc2419e441dbd2270460c8fe7a92e515c0789fa5 (patch)
treeb424962d98ee97013c5c67ef8913c4a2aaf9e0c2 /src/audio_core/stream.h
parentMerge pull request #1389 from PhiBabin/valgrind (diff)
parentstream: Preserve enum class type in GetState() (diff)
downloadyuzu-fc2419e441dbd2270460c8fe7a92e515c0789fa5.tar
yuzu-fc2419e441dbd2270460c8fe7a92e515c0789fa5.tar.gz
yuzu-fc2419e441dbd2270460c8fe7a92e515c0789fa5.tar.bz2
yuzu-fc2419e441dbd2270460c8fe7a92e515c0789fa5.tar.lz
yuzu-fc2419e441dbd2270460c8fe7a92e515c0789fa5.tar.xz
yuzu-fc2419e441dbd2270460c8fe7a92e515c0789fa5.tar.zst
yuzu-fc2419e441dbd2270460c8fe7a92e515c0789fa5.zip
Diffstat (limited to 'src/audio_core/stream.h')
-rw-r--r--src/audio_core/stream.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/audio_core/stream.h b/src/audio_core/stream.h
index 43eca74e1..aebfeb51d 100644
--- a/src/audio_core/stream.h
+++ b/src/audio_core/stream.h
@@ -33,6 +33,12 @@ public:
Multi51Channel16,
};
+ /// Current state of the stream
+ enum class State {
+ Stopped,
+ Playing,
+ };
+
/// Callback function type, used to change guest state on a buffer being released
using ReleaseCallback = std::function<void()>;
@@ -73,15 +79,9 @@ public:
u32 GetNumChannels() const;
/// Get the state
- u32 GetState() const;
+ State GetState() const;
private:
- /// Current state of the stream
- enum class State {
- Stopped,
- Playing,
- };
-
/// Plays the next queued buffer in the audio stream, starting playback if necessary
void PlayNextBuffer();