Skip to content

Commit 80f4e70

Browse files
committed
Fix resampling in cpal
1 parent 2e03a7e commit 80f4e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpaldevice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl CaptureDevice for CpalCaptureDevice {
370370
} else {
371371
None
372372
};
373-
match open_cpal_capture(host_cfg, &devname, samplerate, channels, &format) {
373+
match open_cpal_capture(host_cfg, &devname, capture_samplerate, channels, &format) {
374374
Ok((_host, _device, event_loop)) => {
375375
match status_channel.send(StatusMessage::CaptureReady) {
376376
Ok(()) => {}

0 commit comments

Comments
 (0)