citra/src/audio_core/sink_details.h

25 lines
667 B
C++
Raw Normal View History

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
#include <string>
#include <string_view>
2016-04-28 14:28:59 +01:00
#include <vector>
namespace AudioCore {
class Sink;
/// Retrieves the IDs for all available audio sinks.
std::vector<const char*> GetSinkIDs();
/// Gets the list of devices for a particular sink identified by the given ID.
std::vector<std::string> GetDeviceListForSink(std::string_view sink_id);
2016-04-28 14:28:59 +01:00
/// Creates an audio sink identified by the given device ID.
std::unique_ptr<Sink> CreateSinkFromID(std::string_view sink_id, std::string_view device_id);
2016-04-28 14:28:59 +01:00
} // namespace AudioCore