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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 137 additions and 145 deletions

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