diff options
| author | 2018-09-19 19:53:11 +0800 | |
|---|---|---|
| committer | 2018-09-19 19:53:11 +0800 | |
| commit | c8f9bbbf859c0e38cf691b64c67761382fcebfc2 (patch) | |
| tree | 99529c2277a6b740a6e278985c5147fa649c5497 /src/audio_core/stream.h | |
| parent | Add 1D sampler for TLDS - TexelFetch (Mario Rabbids) (diff) | |
| parent | Merge pull request #1348 from ogniK5377/GetImageSize (diff) | |
| download | yuzu-c8f9bbbf859c0e38cf691b64c67761382fcebfc2.tar.gz yuzu-c8f9bbbf859c0e38cf691b64c67761382fcebfc2.tar.xz yuzu-c8f9bbbf859c0e38cf691b64c67761382fcebfc2.zip | |
Merge branch 'master' into tlds
Diffstat (limited to 'src/audio_core/stream.h')
| -rw-r--r-- | src/audio_core/stream.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/audio_core/stream.h b/src/audio_core/stream.h index 049b92ca9..27db1112f 100644 --- a/src/audio_core/stream.h +++ b/src/audio_core/stream.h | |||
| @@ -11,13 +11,16 @@ | |||
| 11 | #include <queue> | 11 | #include <queue> |
| 12 | 12 | ||
| 13 | #include "audio_core/buffer.h" | 13 | #include "audio_core/buffer.h" |
| 14 | #include "audio_core/sink_stream.h" | ||
| 15 | #include "common/assert.h" | ||
| 16 | #include "common/common_types.h" | 14 | #include "common/common_types.h" |
| 17 | #include "core/core_timing.h" | 15 | |
| 16 | namespace CoreTiming { | ||
| 17 | struct EventType; | ||
| 18 | } | ||
| 18 | 19 | ||
| 19 | namespace AudioCore { | 20 | namespace AudioCore { |
| 20 | 21 | ||
| 22 | class SinkStream; | ||
| 23 | |||
| 21 | /** | 24 | /** |
| 22 | * Represents an audio stream, which is a sequence of queued buffers, to be outputed by AudioOut | 25 | * Represents an audio stream, which is a sequence of queued buffers, to be outputed by AudioOut |
| 23 | */ | 26 | */ |
| @@ -49,7 +52,7 @@ public: | |||
| 49 | bool ContainsBuffer(Buffer::Tag tag) const; | 52 | bool ContainsBuffer(Buffer::Tag tag) const; |
| 50 | 53 | ||
| 51 | /// Returns a vector of recently released buffers specified by tag | 54 | /// Returns a vector of recently released buffers specified by tag |
| 52 | std::vector<Buffer::Tag> GetTagsAndReleaseBuffers(size_t max_count); | 55 | std::vector<Buffer::Tag> GetTagsAndReleaseBuffers(std::size_t max_count); |
| 53 | 56 | ||
| 54 | /// Returns true if the stream is currently playing | 57 | /// Returns true if the stream is currently playing |
| 55 | bool IsPlaying() const { | 58 | bool IsPlaying() const { |
| @@ -57,7 +60,7 @@ public: | |||
| 57 | } | 60 | } |
| 58 | 61 | ||
| 59 | /// Returns the number of queued buffers | 62 | /// Returns the number of queued buffers |
| 60 | size_t GetQueueSize() const { | 63 | std::size_t GetQueueSize() const { |
| 61 | return queued_buffers.size(); | 64 | return queued_buffers.size(); |
| 62 | } | 65 | } |
| 63 | 66 | ||