sink_details.cpp 638 B

12345678910111213141516171819202122232425
  1. // Copyright 2016 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include <memory>
  5. #include <vector>
  6. #include "audio_core/null_sink.h"
  7. #include "audio_core/sink_details.h"
  8. #ifdef HAVE_SDL2
  9. #include "audio_core/sdl2_sink.h"
  10. #endif
  11. namespace AudioCore {
  12. // g_sink_details is ordered in terms of desirability, with the best choice at the top.
  13. const std::vector<SinkDetails> g_sink_details = {
  14. #ifdef HAVE_SDL2
  15. { "sdl2", []() { return std::make_unique<SDL2Sink>(); } },
  16. #endif
  17. { "null", []() { return std::make_unique<NullSink>(); } },
  18. };
  19. } // namespace AudioCore