sink_details: Listing available devices should be separate from sink construction
This commit is contained in:
parent
ce5a5412ae
commit
d269beab0d
13 changed files with 84 additions and 70 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue