mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
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:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user