mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The warm session's loop restarted a keepalive it found stopped on every 100 ms tick, each time with setCategory and setActive and a new AVAudioEngine that reopens the microphone. An engine stops by itself when the hardware's format changes (AVAudioEngineConfigurationChange), for instance when another app such as a screen recording moves the hardware rate, and with Hex asking for its own rate at each restart (the 16 kHz the previous commit removes) the two could take turns, which reconfigures the microphone under the recording up to ten times a second. Now the first restart is immediate, as before; a keepalive that stops again within 10 s of its restart waits 1 s, then 2 s, 4 s and so on up to 30 s, and one that ran 10 s or more restarts at once again. The warm session stays on meanwhile (the keyboard sees it as offline until the keepalive runs). Restarts after a dictation, an interruption, a route change or a media services reset are unchanged. Verified: xcodebuild test on an iOS 27.2 iPhone 18 Pro simulator on the Mac Studio, 474 tests, 0 failures (1 skipped as before), including testAKeepaliveThatKeepsStoppingIsRestartedLessAndLessOften (a fake keepalive that stops as soon as it starts): its steps see 5 restarts with this change and 22 without it. |
||
| .. | ||
| Fixtures | ||
| AutocorrectEngineTests.swift | ||
| CleanupTaggerTests.swift | ||
| CustomVocabularyTests.swift | ||
| DictationControllerTests.swift | ||
| DictationLearningTests.swift | ||
| DotScopeTests.swift | ||
| EmojiSuggesterTests.swift | ||
| FullKeyboardEngineTests.swift | ||
| HexKeyGestureTests.swift | ||
| KeyboardBridgeTests.swift | ||
| KeyboardLayoutTests.swift | ||
| ShiftStateMachineTests.swift | ||
| SwipeDecoderTests.swift | ||
| TranscriptCleanupTests.swift | ||
| TypingLogTests.swift | ||