summaryrefslogtreecommitdiffstats
path: root/src/audio_core/stream.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-24 02:01:02 +0200
committerLioncash <mathew1800@gmail.com>2018-09-24 02:03:38 +0200
commit2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63 (patch)
tree52a37fb98b002943669ab96ad1bdecd3cd42f6d9 /src/audio_core/stream.h
parentAdded glObjectLabels for renderdoc for textures and shader programs (#1384) (diff)
downloadyuzu-2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63.tar
yuzu-2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63.tar.gz
yuzu-2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63.tar.bz2
yuzu-2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63.tar.lz
yuzu-2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63.tar.xz
yuzu-2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63.tar.zst
yuzu-2f6a6113118a6d23bc88b7c3e3d1bfee28c11f63.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();