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.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/audio_core/stream.h b/src/audio_core/stream.h
index 8106cea43..1708a4d98 100644
--- a/src/audio_core/stream.h
+++ b/src/audio_core/stream.h
@@ -98,18 +98,19 @@ private:
98 /// Gets the number of core cycles when the specified buffer will be released 98 /// Gets the number of core cycles when the specified buffer will be released
99 s64 GetBufferReleaseCycles(const Buffer& buffer) const; 99 s64 GetBufferReleaseCycles(const Buffer& buffer) const;
100 100
101 u32 sample_rate; ///< Sample rate of the stream 101 u32 sample_rate; ///< Sample rate of the stream
102 Format format; ///< Format of the stream 102 Format format; ///< Format of the stream
103 float game_volume = 1.0f; ///< The volume the game currently has set 103 float game_volume = 1.0f; ///< The volume the game currently has set
104 ReleaseCallback release_callback; ///< Buffer release callback for the stream 104 ReleaseCallback release_callback; ///< Buffer release callback for the stream
105 State state{State::Stopped}; ///< Playback state of the stream 105 State state{State::Stopped}; ///< Playback state of the stream
106 Core::Timing::EventType* release_event{}; ///< Core timing release event for the stream 106 std::shared_ptr<Core::Timing::EventType>
107 BufferPtr active_buffer; ///< Actively playing buffer in the stream 107 release_event; ///< Core timing release event for the stream
108 std::queue<BufferPtr> queued_buffers; ///< Buffers queued to be played in the stream 108 BufferPtr active_buffer; ///< Actively playing buffer in the stream
109 std::queue<BufferPtr> released_buffers; ///< Buffers recently released from the stream 109 std::queue<BufferPtr> queued_buffers; ///< Buffers queued to be played in the stream
110 SinkStream& sink_stream; ///< Output sink for the stream 110 std::queue<BufferPtr> released_buffers; ///< Buffers recently released from the stream
111 Core::Timing::CoreTiming& core_timing; ///< Core timing instance. 111 SinkStream& sink_stream; ///< Output sink for the stream
112 std::string name; ///< Name of the stream, must be unique 112 Core::Timing::CoreTiming& core_timing; ///< Core timing instance.
113 std::string name; ///< Name of the stream, must be unique
113}; 114};
114 115
115using StreamPtr = std::shared_ptr<Stream>; 116using StreamPtr = std::shared_ptr<Stream>;