nandi/jolt-nativepublic Fork 0
2ab40bf193b6a39bc8d1397cc36d17572bbf59cd
Commits
Clone
git clone https://git.rickub.com/nandi/jolt-native.git
git clone ssh://git@rickub.com/nandi/jolt-native.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

README.md · 25 lines · 1.2 KBmarkdown Blame HistoryRaw
Lift freeq's AV media plane out of sleek 90f8b89 nandi 19d ago1# iOS Feedback Example
2
3This example is an Xcode project that exercises both input and output
4audio streams. Audio samples are read in from your microphone and then
5routed to your audio output device with a small but noticeable delay,
6so you can verify it is working correctly.
7
8To build the example you will need to install `cargo-lipo`. While not
9necessary for building iOS binaries, it is used to build a universal
10binary (x86 for simulator and aarch64 for device.)
11
12```
13cargo install cargo-lipo
14```
15
16Then open the XCode project and click run. A hook in the iOS application
17lifecycle calls into the Rust code to start the input/output feedback
18loop and immediately returns back control.
19
20Before calling into Rust, the AVAudioSession category is configured.
21This is important for controlling how audio is shared with the rest
22of the system when your app is in the foreground. One example is
23controlling whether other apps can play music in the background.
24More information [here](https://developer.apple.com/library/archive/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionCategoriesandModes/AudioSessionCategoriesandModes.html#//apple_ref/doc/uid/TP40007875-CH10).
25