2016-04-28 14:28:59 +01: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 20:17:45 +01:00
|
|
|
#include <memory>
|
2018-09-12 02:36:07 +01:00
|
|
|
#include <string>
|
|
|
|
#include <string_view>
|
2016-04-28 14:28:59 +01:00
|
|
|
#include <vector>
|
2023-05-01 20:17:45 +01:00
|
|
|
#include "common/common_types.h"
|
2016-04-28 14:28:59 +01:00
|
|
|
|
|
|
|
namespace AudioCore {
|
|
|
|
|
|
|
|
class Sink;
|
|
|
|
|
2023-05-01 20:17:45 +01: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 04:55:59 +01:00
|
|
|
|
2018-12-13 21:23:31 +00:00
|
|
|
/// Gets the list of devices for a particular sink identified by the given ID.
|
2023-05-01 20:17:45 +01:00
|
|
|
std::vector<std::string> GetDeviceListForSink(SinkType sink_type);
|
2016-04-28 14:28:59 +01:00
|
|
|
|
2018-12-13 21:23:31 +00:00
|
|
|
/// Creates an audio sink identified by the given device ID.
|
2023-05-01 20:17:45 +01:00
|
|
|
std::unique_ptr<Sink> CreateSinkFromID(SinkType sink_type, std::string_view device_id);
|
2017-01-26 03:33:26 +00:00
|
|
|
|
2016-04-28 14:28:59 +01:00
|
|
|
} // namespace AudioCore
|