mic: Refactor microphone state and management. (#7134)

This commit is contained in:
Steveice10
2023-11-12 13:03:07 -08:00
committed by GitHub
parent 831c9c4a38
commit 5118798c30
10 changed files with 136 additions and 144 deletions
+7 -2
View File
@@ -23,13 +23,18 @@ public:
is_sampling = false;
}
void AdjustSampleRate(u32 sample_rate) override {
parameters.sample_rate = sample_rate;
bool IsSampling() override {
return is_sampling;
}
void AdjustSampleRate(u32 sample_rate) override {}
Samples Read() override {
return {};
}
private:
bool is_sampling = false;
};
} // namespace AudioCore