diff options
Diffstat (limited to 'src/audio_core/sink.h')
| -rw-r--r-- | src/audio_core/sink.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/audio_core/sink.h b/src/audio_core/sink.h deleted file mode 100644 index 3c03554fa..000000000 --- a/src/audio_core/sink.h +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include <memory> | ||
| 7 | #include <string> | ||
| 8 | |||
| 9 | #include "audio_core/sink_stream.h" | ||
| 10 | #include "common/common_types.h" | ||
| 11 | |||
| 12 | namespace AudioCore { | ||
| 13 | |||
| 14 | constexpr char auto_device_name[] = "auto"; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * This class is an interface for an audio sink. An audio sink accepts samples in stereo signed | ||
| 18 | * PCM16 format to be output. Sinks *do not* handle resampling and expect the correct sample rate. | ||
| 19 | * They are dumb outputs. | ||
| 20 | */ | ||
| 21 | class Sink { | ||
| 22 | public: | ||
| 23 | virtual ~Sink() = default; | ||
| 24 | virtual SinkStream& AcquireSinkStream(u32 sample_rate, u32 num_channels, | ||
| 25 | const std::string& name) = 0; | ||
| 26 | }; | ||
| 27 | |||
| 28 | using SinkPtr = std::unique_ptr<Sink>; | ||
| 29 | |||
| 30 | } // namespace AudioCore | ||