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 CubebSink final : public Sink {
public:
CubebSink();
explicit CubebSink(std::string device_id);
~CubebSink() override;
unsigned int GetNativeSampleRate() const override;
@ -21,11 +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> ListCubebSinkDevices();
} // namespace AudioCore