Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[coreaudio] Available Device and Format Enumeration #194

Closed
mitchmindtree opened this issue Jan 23, 2018 · 1 comment
Closed

[coreaudio] Available Device and Format Enumeration #194

mitchmindtree opened this issue Jan 23, 2018 · 1 comment

Comments

@mitchmindtree
Copy link
Member

I'm currently working on implementing device and format enumeration on macos for some commercial work I'm doing atm. Just creating this issue to track progress.

This post from ~10 years ago provides a nice example of this that should be useful.

@mitchmindtree
Copy link
Member Author

I'm currently working on generating the remaining bindings (CoreAudio.h, AudioToolbox.h, CoreMidi.h, etc) for coreaudio-sys in order to implement this, however I'm currently running into this bindgen bug which is making this tricky.

I'm currently tossing up between finding a temporary solution, an old version of rust-bindgen or waiting for a fix on that issue before going ahead with this. Alternatively, I could see if using their recommended build.rs script approach works in the meantime, though I'm unsure how it would change this linking issue and it might cause issues for users on macos who don't use cargo.

mitchmindtree added a commit to mitchmindtree/cpal that referenced this issue Jan 27, 2018
Based on RustAudio#195.

Also implements proper handling of the given `Endpoint` in the
macos implementation of the `build_voice` method.

Updates to the latest coreaudio-sys and coreaudio-rs which include the
additional necessary frameworks.

Also adds a line that prints the name of the default device in the
`enumeration.rs` example.

Updates the CHANGELOG for this PR.

Closes RustAudio#194.
Related to RustAudio#180.

Related external issues:

- RustAudio/coreaudio-sys#4
- RustAudio/coreaudio-rs#57
mitchmindtree added a commit to mitchmindtree/cpal that referenced this issue Jan 27, 2018
Based on RustAudio#195.

Also implements proper handling of the given `Endpoint` in the
macos implementation of the `build_voice` method.

Updates to the latest coreaudio-sys and coreaudio-rs which include the
additional necessary frameworks.

Also adds a line that prints the name of the default device in the
`enumeration.rs` example.

Updates the CHANGELOG for this PR.

Closes RustAudio#194.
Related to RustAudio#180.

Related external issues:

- RustAudio/coreaudio-sys#4
- RustAudio/coreaudio-rs#57
mitchmindtree added a commit to mitchmindtree/cpal that referenced this issue Jan 27, 2018
Based on RustAudio#195.

Also implements proper handling of the given `Endpoint` in the
macos implementation of the `build_voice` method.

Updates to the latest coreaudio-sys and coreaudio-rs which include the
additional necessary frameworks.

Also adds a line that prints the name of the default device in the
`enumeration.rs` example.

Updates the CHANGELOG for this PR.

Closes RustAudio#194.
Related to RustAudio#180.

Related external issues:

- RustAudio/coreaudio-sys#4
- RustAudio/coreaudio-rs#57
@mitchmindtree mitchmindtree changed the title [macos] Available Device and Format Enumeration [coreaudio] Available Device and Format Enumeration Jan 28, 2018
mitchmindtree added a commit to mitchmindtree/cpal that referenced this issue Jan 28, 2018
Based on RustAudio#195.

Also implements proper handling of the given `Endpoint` in the
macos implementation of the `build_voice` method.

Updates to the latest coreaudio-sys and coreaudio-rs which include the
additional necessary frameworks.

Also adds a line that prints the name of the default device in the
`enumeration.rs` example.

Updates the CHANGELOG for this PR.

Closes RustAudio#194.
Related to RustAudio#180.

Related external issues:

- RustAudio/coreaudio-sys#4
- RustAudio/coreaudio-rs#57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant