summaryrefslogtreecommitdiffstats
path: root/src/audio_core/audio_out.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-28 19:35:22 +0200
committerbunnei <bunneidev@gmail.com>2018-07-31 00:58:40 +0200
commit0e8a2c7222b978507f62d7e0b83187b16532eae8 (patch)
treebfcc69cc41fc9cf9fe9a80c321f27ba50d17065f /src/audio_core/audio_out.h
parentaudio_core: Move to audout_u impl. (diff)
downloadyuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar
yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.gz
yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.bz2
yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.lz
yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.xz
yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.tar.zst
yuzu-0e8a2c7222b978507f62d7e0b83187b16532eae8.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/audio_out.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/audio_core/audio_out.h b/src/audio_core/audio_out.h
index a86499d10..962360d09 100644
--- a/src/audio_core/audio_out.h
+++ b/src/audio_core/audio_out.h
@@ -13,15 +13,13 @@
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,7 +35,7 @@ public:
bool QueueBuffer(StreamPtr stream, Buffer::Tag tag, std::vector<u8>&& data);
private:
- /// Active audio streams on the interface
+ SinkPtr sink;
std::vector<StreamPtr> streams;
};