summaryrefslogtreecommitdiffstats
path: root/src/audio_core/audio_out.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_core/audio_out.h')
-rw-r--r--src/audio_core/audio_out.h8
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