diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-08-02 20:25:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 20:25:52 +0200 |
commit | fca7d975fdbeb1c63677b80efc03920affee4b12 (patch) | |
tree | bbded6cf80886c6def87bae92cf6784340165de9 /src/audio_core/sink/sink_details.h | |
parent | Merge pull request #11204 from liamwhite/eds3-blend-amd (diff) | |
parent | config(qt): Fix name of network category (diff) | |
download | yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.gz yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.bz2 yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.lz yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.xz yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.zst yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.zip |
Diffstat (limited to 'src/audio_core/sink/sink_details.h')
-rw-r--r-- | src/audio_core/sink/sink_details.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/audio_core/sink/sink_details.h b/src/audio_core/sink/sink_details.h index e75932898..c8498842b 100644 --- a/src/audio_core/sink/sink_details.h +++ b/src/audio_core/sink/sink_details.h @@ -3,9 +3,11 @@ #pragma once +#include <memory> #include <string> #include <string_view> #include <vector> +#include "common/settings_enums.h" namespace AudioCore { class AudioManager; @@ -19,7 +21,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 +30,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 +39,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 |