Do not specify AudioSpecDesired.freq in audio-capture-and-replay example in order to avoid problems with sound cards, which might not be able to record with 44100 hz.
@@ -122,7 +122,7 @@ fn main() {
let audio_subsystem = sdl_context.audio().unwrap();
let desired_spec = AudioSpecDesired {
- freq: Some(44100),
+ freq: None,
channels: None,
samples: None
};
