summaryrefslogtreecommitdiff
path: root/src/audio_core/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_core/stream.h')
-rw-r--r--src/audio_core/stream.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audio_core/stream.h b/src/audio_core/stream.h
index 35253920e..00f991733 100644
--- a/src/audio_core/stream.h
+++ b/src/audio_core/stream.h
@@ -6,6 +6,7 @@
6 6
7#include <functional> 7#include <functional>
8#include <memory> 8#include <memory>
9#include <string>
9#include <vector> 10#include <vector>
10#include <queue> 11#include <queue>
11 12
@@ -33,7 +34,7 @@ public:
33 using ReleaseCallback = std::function<void()>; 34 using ReleaseCallback = std::function<void()>;
34 35
35 Stream(u32 sample_rate, Format format, ReleaseCallback&& release_callback, 36 Stream(u32 sample_rate, Format format, ReleaseCallback&& release_callback,
36 SinkStream& sink_stream); 37 SinkStream& sink_stream, std::string&& name_);
37 38
38 /// Plays the audio stream 39 /// Plays the audio stream
39 void Play(); 40 void Play();
@@ -96,6 +97,7 @@ private:
96 std::queue<BufferPtr> queued_buffers; ///< Buffers queued to be played in the stream 97 std::queue<BufferPtr> queued_buffers; ///< Buffers queued to be played in the stream
97 std::queue<BufferPtr> released_buffers; ///< Buffers recently released from the stream 98 std::queue<BufferPtr> released_buffers; ///< Buffers recently released from the stream
98 SinkStream& sink_stream; ///< Output sink for the stream 99 SinkStream& sink_stream; ///< Output sink for the stream
100 std::string name; ///< Name of the stream, must be unique
99}; 101};
100 102
101using StreamPtr = std::shared_ptr<Stream>; 103using StreamPtr = std::shared_ptr<Stream>;