Skip to content

Commit f3de53f

Browse files
committed
fix CI
1 parent 5d0411a commit f3de53f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/asio_panel.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
use cpal::platform::DeviceInner;
2-
use cpal::traits::{DeviceTrait, HostTrait, StreamTrait};
3-
use cpal::HostId;
4-
5-
#[cfg(target_os = "windows")]
1+
#[cfg(all(windows, feature = "asio"))]
62
fn main() -> anyhow::Result<()> {
3+
use cpal::platform::DeviceInner;
4+
use cpal::traits::{DeviceTrait, HostTrait, StreamTrait};
5+
use cpal::HostId;
6+
77
let host = cpal::host_from_id(HostId::Asio)?;
88

99
let device = host
@@ -42,5 +42,5 @@ fn main() -> anyhow::Result<()> {
4242
Ok(())
4343
}
4444

45-
#[cfg(not(target_os = "windows"))]
45+
#[cfg(not(all(windows, feature = "asio")))]
4646
fn main() {}

0 commit comments

Comments
 (0)