We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f41bc47 commit b1fcf7bCopy full SHA for b1fcf7b
1 file changed
src/microphone.rs
@@ -202,6 +202,21 @@ impl Source for Microphone {
202
}
203
204
205
+#[cfg(feature = "experimental")]
206
+impl crate::FixedSource for Microphone {
207
+ fn channels(&self) -> crate::ChannelCount {
208
+ self.config.channel_count
209
+ }
210
+
211
+ fn sample_rate(&self) -> crate::SampleRate {
212
+ self.config.sample_rate
213
214
215
+ fn total_duration(&self) -> Option<std::time::Duration> {
216
+ None
217
218
+}
219
220
impl Iterator for Microphone {
221
type Item = Sample;
222
0 commit comments