mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
Adds an NSLock gate around the tap and configuration observer with a clean teardown, an Objective-C @try/@catch guard for AVAudioEngine exceptions, format and device verification, a channel-0 Float32 tap, configuration-change reporting, and a remembered raw fallback per microphone. Fixes the iOS category comparison for voiceChat's implicit hands-free Bluetooth and rewords the experiment's copy.
13 lines
495 B
C
13 lines
495 B
C
#ifndef HEX_VOICE_PROCESSING_GUARD_H
|
|
#define HEX_VOICE_PROCESSING_GUARD_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/// Runs `body` inside @try/@catch, so an Objective-C exception AVAudioEngine
|
|
/// raises for a refused graph or a failed tap becomes an error Swift can fall
|
|
/// back from. Answers 0, or 1 with an owned message in `error` (free it with
|
|
/// free()).
|
|
typedef void (^hex_voice_processing_guard_body)(void);
|
|
int32_t hex_voice_processing_guard(hex_voice_processing_guard_body body, char **error);
|
|
|
|
#endif
|