diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-31 05:29:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 05:29:17 +0200 |
commit | bf9c62bc76a2296c1a81cfc1b83aaf4028578901 (patch) | |
tree | dad8906c597af3f579d4f72f4c9f493503c40665 /src/audio_core/audio_out.h | |
parent | Port #3758 from Citra (#852): Add missing std::string import in text_formatter (diff) | |
parent | audio_core: Implement Sink and SinkStream interfaces with cubeb. (diff) | |
download | yuzu-bf9c62bc76a2296c1a81cfc1b83aaf4028578901.tar yuzu-bf9c62bc76a2296c1a81cfc1b83aaf4028578901.tar.gz yuzu-bf9c62bc76a2296c1a81cfc1b83aaf4028578901.tar.bz2 yuzu-bf9c62bc76a2296c1a81cfc1b83aaf4028578901.tar.lz yuzu-bf9c62bc76a2296c1a81cfc1b83aaf4028578901.tar.xz yuzu-bf9c62bc76a2296c1a81cfc1b83aaf4028578901.tar.zst yuzu-bf9c62bc76a2296c1a81cfc1b83aaf4028578901.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/audio_out.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/audio_core/audio_out.h b/src/audio_core/audio_out.h index a86499d10..8d9b695d4 100644 --- a/src/audio_core/audio_out.h +++ b/src/audio_core/audio_out.h @@ -8,20 +8,19 @@ #include <vector> #include "audio_core/buffer.h" +#include "audio_core/sink.h" #include "audio_core/stream.h" #include "common/common_types.h" namespace AudioCore { -using StreamPtr = std::shared_ptr<Stream>; - /** * Represents an audio playback interface, used to open and play audio streams */ class AudioOut { public: /// Opens a new audio stream - StreamPtr OpenStream(int sample_rate, int num_channels, + StreamPtr OpenStream(u32 sample_rate, u32 num_channels, Stream::ReleaseCallback&& release_callback); /// Returns a vector of recently released buffers specified by tag for the specified stream @@ -37,8 +36,7 @@ public: bool QueueBuffer(StreamPtr stream, Buffer::Tag tag, std::vector<u8>&& data); private: - /// Active audio streams on the interface - std::vector<StreamPtr> streams; + SinkPtr sink; }; } // namespace AudioCore |