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