Skip to content

Commit

Permalink
Tune api
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Oct 27, 2024
1 parent 9558a2d commit 0af1fa1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cidre/examples/au-capture/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Ctx {

#[tokio::main]
async fn main() {
let input = core_audio::AudioObjId::default_input_device().unwrap();
let input = core_audio::AudioObjId::hardware_default_input_device().unwrap();
let output = au::Output::new_apple_vp().unwrap();
let input_device = output.input_device().unwrap();
let asbd = output
Expand Down
4 changes: 2 additions & 2 deletions cidre/src/core_audio/hardware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ impl core_audio::AudioObjId {
})
}

pub fn default_input_device() -> os::Result<Self> {
pub fn hardware_default_input_device() -> os::Result<Self> {
Self::SYS_OBJECT.prop(&AudioObjPropAddr {
selector: AudioObjPropSelector::HARDWARE_DEFAULT_INPUT_DEVICE,
scope: AudioObjPropScope::GLOBAL,
element: AudioObjPropElement::MAIN,
})
}

pub fn default_output_device() -> os::Result<Self> {
pub fn hardware_default_output_device() -> os::Result<Self> {
Self::SYS_OBJECT.prop(&AudioObjPropAddr {
selector: AudioObjPropSelector::HARDWARE_DEFAULT_OUTPUT_DEVICE,
scope: AudioObjPropScope::GLOBAL,
Expand Down

0 comments on commit 0af1fa1

Please sign in to comment.