Repository navigation
Replace coreaudio-sys with objc2-audio-toolbox - #26
Merged
Merged
Conversation
coreaudio-sys runs bindgen on the macOS SDK headers at build time, which needs libclang and breaks when cross-compiling, e.g. with cargo-zigbuild. objc2-audio-toolbox ships pregenerated bindings for the same AudioQueue API.
Owner
|
I'm not a huge fan of AI-generated code, but this one looks ok and fixes real problem. |
It looks quite similar to what a human would have done by hand. So likely no complaints from a technical pov. |
rerun-sync Bot
pushed a commit
to rerun-io/rerun
that referenced
this pull request
Nov 16, 2026
### Related * rerun-io/reality#5016 (previous zombie-TODO sweep) * rerun-io/reality#5046 (already handles `TODO(#12481)`) * rerun-io/reality#5059 (already handles `TODO(#1640)`) ### Why Housekeeping sweep for TODOs that reference closed issues, in `rerun/` at cd58e9f03e. Both halves are covered: 200 GitHub issues and 118 Linear issues, behind 708 TODO lines. 49 lines point at 34 closed issues. Only one group was provably stale; the rest need a human call and are listed below. ### What * Remove two `TODO(wgpu#5170)` comments. wgpu's `Display for Backend` only forwards to `to_str()`, which the code already calls. * Rewrite `TODO(wgpu#NNNN)` to `TODO(gfx-rs/wgpu#NNNN)` in `device_caps.rs`. The bare form parses as a rerun issue number, so `zombie_todos.py` checked the wrong tracker. Comments only, no behavior change. <details><summary>Needs a human decision (not changed here)</summary> Upstream fix exists, workaround may be removable: * `re_renderer/src/device_caps.rs:583-590`: gfx-rs/wgpu#5166 and gfx-rs/wgpu#5167 are both merged. Can the DX12 and GL backend guards be relaxed? * `re_types_builder/src/codegen/python/mod.rs:2639,2642`: #10959 (drop Python 3.9) is done. Unverified whether `isinstance` works for every `xLike` union. Blocked on a dependency upgrade or release (keep): * apache/arrow#45985 (`rerun_cpp/download_and_build_arrow.cmake`, Arrow pinned to 18.0.0) * lance-format/lance#3073 (`re_server/Cargo.toml`, `rerun-cli/Cargo.toml`; workspace is on lance 10) * rust-windowing/winit#1550 and rust-windowing/winit#4390 (`re_viewer/src/app/mod.rs`, `re_time_panel/src/lib.rs`; both fixed after winit 0.30.13) * lampsitter/egui_commonmark#112 and mrDIMAS/tinyaudio#26 (merged, not yet released) Work remains, the TODO needs a new reference: * apache/arrow-rs#6900 (`codegen/rust/deserializer.rs:836`): closed as not planned and its PR was not merged, so this TODO can never be done as written. Delete it? * emilk/egui#4781 (`re_ui/src/egui_ext/response_ext.rs:4`): closed in 2024, the TODO is newer. * #8744 (`re_chunk/src/transport.rs:17,26,110`), #9427 (`re_types_builder/src/objects/from_rust.rs:444`) * #4969 (`aggregation_policy.def.rs:31`, `re_view_time_series/src/util.rs:189`): closed as "fixed or at least substantially changed". Is the zig-zag note still true? * RR-3863 (`re_ui_example/main.rs:554`): canceled in favor of RR-3864. * RR-4439 (`re_tf/…/cached_transform_value.rs:9,49,59`): canceled as not worth it. Turn into a plain note? * RR-1538 (`re_datafusion/ARCHITECTURE.md:30`), RR-4240 (`state_timeline.def.rs:5`, `examples/python/state_timeline/README.md:14`), RR-4503 (`re_chunk_store/src/lazy_store.rs:27`), RR-4810 (`rerun_py/…/blueprint/table.py:184`), RR-4874 (`re_redap_browser/src/servers/mod.rs:137`), RR-4929 (`re_integration_test/…/internal_catalog.rs:32,140`), RR-5031 (`re_recording_panel/src/data.rs:307`), RR-5034 (`re_data_source/src/data_source.rs:17`), RR-5830 (`rerun_py/…/_catalog_client.py:256`) Issue possibly closed in error: * #12745, #12746 ("get … out of experimental", closed as completed): `examples/python/table_grid_with_flags`, `rerun_py/src/catalog/table_entry.rs:96,119` still say experimental. Same question for #10631 (`codegen/python/mod.rs:978`). * RR-4607 (`re_datafusion/src/dataframe_query_provider/mod.rs:211`): the leak workaround is still there, and the upstream issue it names is still open. * RR-5258 (`blueprint_import_test.rs:110`, `rrd_bw_compat_test.rs:276`): closed as "remove the option", but `use_viewer_catalog` still exists. </details> ### Testing `rustfmt --check` on both files. No clippy or test run: the diff only touches comments. An independent agent review confirmed both changes. ### Agent 🤖 This PR was opened by a coding agent (Claude), as part of the housekeeping sweep. Issue states were read with `gh` and the Linear connector, using the reference regexes from `rerun/scripts/zombie_todos.py`, because the script itself could not get a token in the agent sandbox. 🛂 Created with the `create-pr` skill 🤖 Generated with [Claude Code](https://claude.com/claude-code) Source-Ref: 530c6326fee46526bb06f9a76baf742fa9934aa1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
coreaudio-sysgenerates its bindings with bindgen at build time. That makes every macOS/iOS build oftinyaudiodepend on libclang and the full SDK headers, and it breaks when cross-compiling.For example, with
cargo-zigbuildon Linux,AudioToolbox.hfails to parse ('AudioToolbox/CASpatialAudioExperience.h' file not found) becauseTARGET_OS_OSXends up unset.This switches the CoreAudio backend to
objc2-audio-toolboxandobjc2-core-audio-types, which ship pregenerated bindings for the same AudioQueue API.The backend logic is unchanged; only the types and signatures differ (
NonNullout-pointers,boolinstead ofBoolean,extern "C-unwind"callback).The dependency tree no longer contains
bindgen, and builds are faster.Tested on macOS (Apple Silicon): the
sineexample plays, and the data callback fires about 47 times per second at 48 kHz with 1024-frame buffers, as expected.Not tested on iOS.
Disclosure: this PR was written by Claude, an AI coding assistant, working for @emilk.