Repository navigation
The Forest Android 0.2.2
0.2.2 – Smooth Audio Pipeline (WASAPI, AAudio & Thread Priorities)
- Zero Synthetic Silence Gaps & Larger Audio Headroom (
runtime/src/wasapi.c):- Eliminated synthetic
0.0fsilence-padding on partial reads inpump_thread(previously injected audible silence gaps whenever FMOD's 1024-frame DSP mix / 10 ms waitable timer was out of phase with the pump tick); only real audio frames produced by FMOD are forwarded to SDL3. - Raised the WASAPI ring buffer floor from
40 ms(1920frames) to80 ms(3840frames, staying within FMOD's 4096-frame internal ring), increased the SDL3 AudioStream queue headroom from40 msto120 ms(5760frames) with a5 mspump cadence, and clamped sleep drift across GC/loading stalls to prevent catch-up drain bursts. - Added detailed 10 s telemetry (
empty,sink_low,q=min..max ms).
- Eliminated synthetic
- Stable Android AAudio Buffering & Lifecycle (
android/native/android_main.c):- Disabled
SDL_HINT_ANDROID_LOW_LATENCY_AUDIO("0") and requested1024-frame device callbacks (SDL_HINT_AUDIO_DEVICE_SAMPLE_FRAMES="1024") beforeSDL_OpenAudioDeviceStream, eliminatingAAUDIO_PERFORMANCE_MODE_LOW_LATENCYhardware underflows under heavy Unity + DXVK + Mono GC load. - Properly pauses & flushes the SDL3 audio stream on
SDL_EVENT_WILL_ENTER_BACKGROUNDand resumes cleanly onSDL_EVENT_DID_ENTER_FOREGROUND.
- Disabled
- Real Win32 Thread Priorities & Non-Bursting Waitable Timers (
runtime/src/k32_sync.c):- Implemented real Linux
setpriority(PRIO_PROCESS, tid, nice)inSetThreadPriority_(previously a no-op), giving FMOD'sTHREAD_PRIORITY_TIME_CRITICALmixer/feeder threadsnice -16(ANDROID_PRIORITY_AUDIO),pump_threadnice -16, andwtimer_mainnice -12so audio outranks Unity/DXVK worker threads. - Clamped
wtimer_mainperiodicnext_dueagainst wall clock to prevent wake-up bursts after pauses.
- Implemented real Linux
Source-only release — build the APK from your own PC copy via ./build.sh "/path/to/The Forest".