sink_details.h 666 B

123456789101112131415161718192021222324
  1. // Copyright 2018 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <string>
  6. #include <string_view>
  7. #include <vector>
  8. namespace AudioCore {
  9. class Sink;
  10. /// Retrieves the IDs for all available audio sinks.
  11. std::vector<const char*> GetSinkIDs();
  12. /// Gets the list of devices for a particular sink identified by the given ID.
  13. std::vector<std::string> GetDeviceListForSink(std::string_view sink_id);
  14. /// Creates an audio sink identified by the given device ID.
  15. std::unique_ptr<Sink> CreateSinkFromID(std::string_view sink_id, std::string_view device_id);
  16. } // namespace AudioCore