sink_details: Listing available devices should be separate from sink construction

This commit is contained in:
MerryMage 2018-07-02 14:03:14 +01:00
parent ce5a5412ae
commit d269beab0d
13 changed files with 84 additions and 70 deletions

View file

@ -12,7 +12,7 @@ namespace AudioCore {
class SDL2Sink final : public Sink {
public:
SDL2Sink();
explicit SDL2Sink(std::string device_id);
~SDL2Sink() override;
unsigned int GetNativeSampleRate() const override;
@ -21,12 +21,11 @@ public:
size_t SamplesInQueue() const override;
std::vector<std::string> GetDeviceList() const override;
private:
struct Impl;
std::unique_ptr<Impl> impl;
std::vector<std::string> device_list;
};
std::vector<std::string> ListSDL2SinkDevices();
} // namespace AudioCore