From 059cf96ee51174338f558b60c8357bbb73691609 Mon Sep 17 00:00:00 2001 From: shybyte Date: Thu, 15 Jun 2017 10:08:20 +0200 Subject: [PATCH] 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. --- examples/audio-capture-and-replay.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/audio-capture-and-replay.rs b/examples/audio-capture-and-replay.rs index 689d5093..715fc233 100644 --- a/examples/audio-capture-and-replay.rs +++ b/examples/audio-capture-and-replay.rs @@ -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 };