2016-04-28 15:28:59 +02:00
|
|
|
// Copyright 2016 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-05-01 21:17:45 +02:00
|
|
|
#include <memory>
|
2018-09-12 03:36:07 +02:00
|
|
|
#include <string>
|
|
|
|
#include <string_view>
|
2016-04-28 15:28:59 +02:00
|
|
|
#include <vector>
|
2023-05-01 21:17:45 +02:00
|
|
|
#include "common/common_types.h"
|
2016-04-28 15:28:59 +02:00
|
|
|
|
|
|
|
namespace AudioCore {
|
|
|
|
|
|
|
|
class Sink;
|
|
|
|
|
2023-05-01 21:17:45 +02:00
|
|
|
enum class SinkType : u32 {
|
|
|
|
Auto = 0,
|
|
|
|
Null = 1,
|
|
|
|
Cubeb = 2,
|
|
|
|
OpenAL = 3,
|
|
|
|
SDL2 = 4,
|
|
|
|
|
|
|
|
NumSinkTypes,
|
|
|
|
};
|
|
|
|
|
|
|
|
/// Gets the name of a sink type.
|
|
|
|
std::string_view GetSinkName(SinkType sink_type);
|
2018-08-02 05:55:59 +02:00
|
|
|
|
2018-12-13 22:23:31 +01:00
|
|
|
/// Gets the list of devices for a particular sink identified by the given ID.
|
2023-05-01 21:17:45 +02:00
|
|
|
std::vector<std::string> GetDeviceListForSink(SinkType sink_type);
|
2016-04-28 15:28:59 +02:00
|
|
|
|
2018-12-13 22:23:31 +01:00
|
|
|
/// Creates an audio sink identified by the given device ID.
|
2023-05-01 21:17:45 +02:00
|
|
|
std::unique_ptr<Sink> CreateSinkFromID(SinkType sink_type, std::string_view device_id);
|
2017-01-26 04:33:26 +01:00
|
|
|
|
2016-04-28 15:28:59 +02:00
|
|
|
} // namespace AudioCore
|