configure_audio: Implement ui generation

Needs a considerable amount of management specific to some of
the comoboboxes due to the audio engine configuration.

general: Partial audio config implmentation

configure_audio: Implement ui generation

Needs a considerable amount of management specific to some of
the comoboboxes due to the audio engine configuration.

general: Partial audio config implmentation

settings: Make audio settings as enums
This commit is contained in:
lat9nq
2023-05-18 17:54:22 -04:00
parent 88d3de4e85
commit 432f68ad29
14 changed files with 221 additions and 331 deletions

View File

@@ -7,6 +7,9 @@
#include <string_view>
#include <vector>
namespace Settings {
enum class AudioEngine : u32;
}
namespace AudioCore {
class AudioManager;
@@ -19,7 +22,7 @@ class Sink;
*
* @return Vector of available sink names.
*/
std::vector<std::string_view> GetSinkIDs();
std::vector<Settings::AudioEngine> GetSinkIDs();
/**
* Gets the list of devices for a particular sink identified by the given ID.
@@ -28,7 +31,7 @@ std::vector<std::string_view> GetSinkIDs();
* @param capture - Get capture (input) devices, or output devices?
* @return Vector of device names.
*/
std::vector<std::string> GetDeviceListForSink(std::string_view sink_id, bool capture);
std::vector<std::string> GetDeviceListForSink(Settings::AudioEngine sink_id, bool capture);
/**
* Creates an audio sink identified by the given device ID.
@@ -37,7 +40,7 @@ std::vector<std::string> GetDeviceListForSink(std::string_view sink_id, bool cap
* @param device_id - Name of the device to create.
* @return Pointer to the created sink.
*/
std::unique_ptr<Sink> CreateSinkFromID(std::string_view sink_id, std::string_view device_id);
std::unique_ptr<Sink> CreateSinkFromID(Settings::AudioEngine sink_id, std::string_view device_id);
} // namespace Sink
} // namespace AudioCore