Skip to content

Commit

Permalink
feature flag for core_audio
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 26, 2024
1 parent 13e288b commit 212f5c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cidre/src/at/audio/unit/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
os,
};

#[cfg(target_os = "macos")]
#[cfg(all(target_os = "macos", feature = "core_audio"))]
use crate::core_audio::Device;

pub struct Output<S>(UnitRef<S>)
Expand Down Expand Up @@ -257,7 +257,7 @@ impl Output<UninitializedState> {
self.unit_mut().set_stream_format(Scope::OUTPUT, 1, val)
}

#[cfg(target_os = "macos")]
#[cfg(all(target_os = "macos", feature = "core_audio"))]
#[inline]
pub fn output_device(&self) -> os::Result<Device> {
self.unit().prop(
Expand All @@ -268,7 +268,7 @@ impl Output<UninitializedState> {
}

/// Set device after enable IO
#[cfg(target_os = "macos")]
#[cfg(all(target_os = "macos", feature = "core_audio"))]
#[inline]
pub fn set_output_device(&mut self, val: &Device) -> os::Result {
self.unit_mut().set_prop(
Expand All @@ -279,7 +279,7 @@ impl Output<UninitializedState> {
)
}

#[cfg(target_os = "macos")]
#[cfg(all(target_os = "macos", feature = "core_audio"))]
#[inline]
pub fn input_device(&self) -> os::Result<Device> {
self.unit().prop(
Expand All @@ -290,7 +290,7 @@ impl Output<UninitializedState> {
}

/// Set device after enable IO
#[cfg(target_os = "macos")]
#[cfg(all(target_os = "macos", feature = "core_audio"))]
#[inline]
pub fn set_input_device(&mut self, val: &Device) -> os::Result {
self.unit_mut().set_prop(
Expand Down

0 comments on commit 212f5c0

Please # to comment.