#macos-ios #avf-audio #macos #ios #av-audio-session #visionos

avfaudio

Rust library to setup AVAudioSession from Apple's AVFAudio framework

4 releases

0.0.4 Apr 7, 2025
0.0.3 Jan 31, 2025
0.0.2 Jun 8, 2024
0.0.1 Jun 8, 2024

#81 in macOS and iOS APIs

Download history 127/week @ 2025-01-29 12/week @ 2025-02-05 63/week @ 2025-02-12 13/week @ 2025-02-26 134/week @ 2025-04-02 29/week @ 2025-04-09

163 downloads per month

MIT license

8KB
105 lines

avfaudio

A rust version of setting up AVFAudio and AVAudioSession.

Based on https://github.com/eugenehp/avfaudio-sys

Warning

Work in progress. This library implements only AVAudioSession category setting for now. For full bindings check avfaudio2-sys.

Development

Build

Build on your host system (mac):

cargo build

Or specify target like aarch64-apple-visionos, rest of the parameters are needed for the nightly rust toolchain, since visionOS is a Tier 3 target.

cargo +nightly build -Zbuild-std --target aarch64-apple-visionos

Run example

cargo run --example session

Authors

Copyright (c) 2024-2025 Eugene Hauptmann

License

MIT

Dependencies

~0.1–2MB
~41K SLoC