service/mic: actually use the specified device
This commit is contained in:
parent
5fa71d425b
commit
e1e136d72f
7 changed files with 46 additions and 10 deletions
|
@ -12,7 +12,7 @@ namespace AudioCore {
|
|||
|
||||
class CubebInput final : public Frontend::Mic::Interface {
|
||||
public:
|
||||
CubebInput();
|
||||
explicit CubebInput(std::string device_id);
|
||||
~CubebInput() override;
|
||||
|
||||
void StartSampling(const Frontend::Mic::Parameters& params) override;
|
||||
|
@ -26,6 +26,7 @@ public:
|
|||
private:
|
||||
struct Impl;
|
||||
std::unique_ptr<Impl> impl;
|
||||
std::string device_id;
|
||||
};
|
||||
|
||||
std::vector<std::string> ListCubebInputDevices();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue