mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
27 lines
459 B
C++
27 lines
459 B
C++
#pragma once
|
|
|
|
#include "util/types.hpp"
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
class audio_device_enumerator
|
|
{
|
|
public:
|
|
|
|
static constexpr std::string_view DEFAULT_DEV_ID = "@@@default@@@";
|
|
|
|
struct audio_device
|
|
{
|
|
std::string id{};
|
|
std::string name{};
|
|
usz max_ch{};
|
|
};
|
|
|
|
audio_device_enumerator() {};
|
|
|
|
virtual ~audio_device_enumerator() = default;
|
|
|
|
// Enumerate available output devices.
|
|
virtual std::vector<audio_device> get_output_devices() = 0;
|
|
};
|