summaryrefslogtreecommitdiffstats
path: root/src/audio_core/sdl2_sink.h
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2016-04-27 11:57:29 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2016-05-07 12:32:48 +0200
commit920d2cf41d9366a597bbd30d1dea5ba1884b3800 (patch)
treeca4d930691a4f10b2c6aea5be078b41bdfe76c3e /src/audio_core/sdl2_sink.h
parentMerge pull request #1729 from MerryMage/null-sink (diff)
downloadyuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.gz
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.bz2
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.lz
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.xz
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.tar.zst
yuzu-920d2cf41d9366a597bbd30d1dea5ba1884b3800.zip
Diffstat (limited to 'src/audio_core/sdl2_sink.h')
-rw-r--r--src/audio_core/sdl2_sink.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/audio_core/sdl2_sink.h b/src/audio_core/sdl2_sink.h
new file mode 100644
index 000000000..0f296b673
--- /dev/null
+++ b/src/audio_core/sdl2_sink.h
@@ -0,0 +1,30 @@
+// Copyright 2016 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <cstddef>
+#include <memory>
+
+#include "audio_core/sink.h"
+
+namespace AudioCore {
+
+class SDL2Sink final : public Sink {
+public:
+ SDL2Sink();
+ ~SDL2Sink() override;
+
+ unsigned int GetNativeSampleRate() const override;
+
+ void EnqueueSamples(const std::vector<s16>& samples) override;
+
+ size_t SamplesInQueue() const override;
+
+private:
+ struct Impl;
+ std::unique_ptr<Impl> impl;
+};
+
+} // namespace AudioCore