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.

This commit is contained in:
shybyte
2017-07-08 22:09:27 -07:00
committed by Cobrand
parent 515229add5
commit 059cf96ee5
+1 -1
View File
@@ -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
};