File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 # MSRV varies by backend due to platform-specific dependencies
2727 MSRV_AAUDIO : " 1.85"
2828 MSRV_ALSA : " 1.85"
29- MSRV_COREAUDIO : " 1.82 "
29+ MSRV_COREAUDIO : " 1.80 "
3030 MSRV_JACK : " 1.82"
31- MSRV_WASIP1 : " 1.82 "
31+ MSRV_WASIP1 : " 1.78 "
3232 MSRV_WASM : " 1.82"
3333 MSRV_WINDOWS : " 1.82"
3434
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ documentation = "https://docs.rs/cpal"
77license = " Apache-2.0"
88keywords = [" audio" , " sound" ]
99edition = " 2021"
10- rust-version = " 1.82 "
10+ rust-version = " 1.78 "
1111
1212[features ]
1313# ASIO backend for Windows
Original file line number Diff line number Diff line change @@ -294,11 +294,7 @@ impl DeviceTrait for Device {
294294 drop ( context) ;
295295 } )
296296 . unwrap ( ) ;
297- if pw_init_rv
298- . recv_timeout ( wait_timeout)
299- . ok ( )
300- . is_none_or ( |re| !re)
301- {
297+ if pw_init_rv. recv_timeout ( wait_timeout) . unwrap_or ( false ) {
302298 return Err ( crate :: BuildStreamError :: DeviceNotAvailable ) ;
303299 } ;
304300 Ok ( Stream {
@@ -357,11 +353,7 @@ impl DeviceTrait for Device {
357353 drop ( context) ;
358354 } )
359355 . unwrap ( ) ;
360- if pw_init_rv
361- . recv_timeout ( wait_timeout)
362- . ok ( )
363- . is_none_or ( |re| !re)
364- {
356+ if pw_init_rv. recv_timeout ( wait_timeout) . unwrap_or ( false ) {
365357 return Err ( crate :: BuildStreamError :: DeviceNotAvailable ) ;
366358 } ;
367359 Ok ( Stream {
You can’t perform that action at this time.
0 commit comments