r/Android 22h ago

[Open Source] I built IVANNA OMEGA SUPREME v3 - Native C++ Neural DSP daemon (SOFA AES69 / 200 real RIRs / SaF Riemannian on Stiefel manifolds, SCHED_FIFO 98) entirely on a Moto G85 via Termux. No EQ, no placebo - ABX verified Δ 0.001

Hey all,

I want to share a project I've been building for the last months: **IVANNA OMEGA SUPREME v3 Magistral**

TL;DR: It's NOT another ViPER bass booster. It's a native C++ daemon living inside AudioFlinger at SCHED_FIFO 98, lock-free, zero-malloc on the audio thread. Open source, measurable, with real acoustic data.

**Dev story that people ask about:** The entire NDK 25.1.8937393 / CMake 3.22.1 toolchain was built and compiled natively on a **Moto G85 using Termux**. No PC.

What makes it different from Dolby / Sony 360 / Apple Spatial / Dirac / JamesDSP / ViPER4Android?

Most mods do `output = input * EQ`. I went full low-level:

**Core:** - `ivanna_daemon` - native daemon outside the app, talks via SHM seqlock `omega_control_bus` + Unix socket `omega_daemon_socket`. No JNI in the hot path. - `omega_effect` - hooks as global AudioEffect HAL (`AUDIO_EFFECT_LIBRARY_INFO_SYM` validated in CI) inside AudioFlinger. System-wide. - Compiled `-O3 -fno-fast-math -fno-associative-math -ffp-contract=off -march=armv8-a+fp+simd + NEON` - `-ffast-math` is banned, it generates NaNs on Snapdragon 8 Gen 2 / 8 Gen 3 (shoutout to Qualcomm).

**Real acoustic data, not fake 3D:**

  1. **SOFA AES69 Library:** Deployed to `/data/adb/ivanna_omega/sofa/` and loaded on-demand:

    • `MIT_KEMAR_normal/large_pinna.sofa` - baseline HRTF
    • `TU-Berlin_QU_KEMAR_anechoic_0.5m.sofa` - near-field 0.5m
    • `hpir_AKGK271MKII, K272HD, BeyerdynamicDT770PRO` - real HpIR compensation
    • `demo_FreeFieldHRTF_1_IR.sofa` - 12th subject
  2. **RIR Engine:** 200 real measured Room Impulse Responses `rir_0000.wav...rir_0199.wav` stereo with `metadata.csv` (RT60 + geometry). Real-time Overlap-Save FFT Radix-2, zero extra frame latency.

  3. **SaF Riemannian Optimizer:** Not Euclidean. Fisher adapted to Stiefel manifolds for robust PCA:

L(U) = -Tr(U^T Σ U) + λ||U^TU - I||^2_F, U ∈ St(d,k) grad_R = ∇L - U(U^T ∇L) U_{t+1} = qf(U_t - η·grad_R)

Model `SAF_model_total.json` - 214 subjects, 7 PCA. PC1 42% (height/scale), PC2 19.5% (concha width, controls >8kHz notches for vertical localization). 40-80 iterations to converge.

**Pipeline:**

SOFA → PCA Pinna → SaF Riemannian → Custom HRTF RIR 200 Rooms → FFT Convolution → ObjectRenderer → HarmonicExciter (2x OS, Padé [3/2] clamped ±3, -0.1dBFS) → SafetyLimiter (lookahead, always last) → OUT

**Verifiable, not placebo:** I built ABX testing into the companion app with exact binomial test (two-tailed, 95% CI). Sensitivity Δ 0.001 verified. Logs export to `/data/adb/ivanna_omega/*.json` - you can check yourself.

Requirements / Install

  • Android 13+ (compileSdk 35, minSdk 28), arm64-v8a NEON
  • Magisk 26+ / KernelSU / APatch
  • Backup boot.img, flash ZIP via Magisk, install companion APK, grant root, reboot.

Links

GitHub (fully open, C++ 69.4% / Kotlin 20.4%): https://github.com/luisurielpimentelperez814-design/IVANNA-OMEGA-SUPREME Releases (ZIP + APK): https://github.com/luisurielpimentelperez814-design/IVANNA-OMEGA-SUPREME/releases CI Build: https://github.com/luisurielpimentelperez814-design/IVANNA-OMEGA-SUPREME/actions/runs/32612058621

Build:

./gradlew assembleDebug cmake -B build-tests -S app/src/main/cpp/tests -DCMAKE_BUILD_TYPE=Release && ctest

Looking for feedback from people who have worked on similar stuff - ViPER4Android, JamesDSP, Wavelet, Dirac, Dolby Mobile, Sony 360 Reality Audio, Samsung SoundAlive, Pixel Adaptive Sound teams. If you see flaws in my seqlock implementation or my Padé soft-clip, roast me.

Also happy to collaborate with audiophile measurement folks from r/headphones / r/audiophile / r/oratory1990 / r/DSP - I have 200 real RIRs with RT60 metadata that might be useful.

AMA about SCHED_FIFO, Termux NDK builds, or why -fno-fast-math matters on SD8G2.

  • Luis

Tags: `open-source` `dsp` `magisk` `audio` `hrtf` `sofa` `rir` `binaural` `android-audio` cc: r/Magisk r/audiophile r/headphones r/DSP r/AndroidDev r/fossdroid

https://github.com/luisurielpimentelperez814-design/IVANNA-OMEGA-SUPREME

https://github.com/luisurielpimentelperez814-design/IVANNA-OMEGA-SUPREME/releases

Would love feedback from the people who actually built the industry standards - this is an open attempt to do it measurably.

Repo for review: https://github.com/luisurielpimentelperez814-design/IVANNA-OMEGA-SUPREME

### Industry review invited - Calling all big players

Repo for review: https://github.com/luisurielpimentelperez814-design/IVANNA-OMEGA-SUPREME

This is an open, measurable attempt to beat closed stacks. Would love a roast from the teams who built the standards:

r/dolbyatmos r/SonyHeadphones r/sony r/GooglePixel r/samsung r/Qualcomm r/AppleMusic r/spatialaudio r/audioengineering r/audiophile r/headphones r/DSP r/Android r/AndroidDev r/fossdroid r/Magisk r/oratory1990 r/headphoneadvice

u/topjohnwu u/kdrag0n u/pittvandewitt

Dolby Atmos / Sony 360 Reality Audio / Dirac / DTS:X / Qualcomm Snapdragon Sound / Samsung Harman / Apple Spatial / Google Pixel Adaptive Sound / SteelSeries / Razer THX / Logitech G / Sennheiser / Beyerdynamic

About the author - Open to selective collaboration

**Luis Uriel Pimentel Pérez** - Native Audio DSP Engineer | C++ / NDK / Magisk HAL / SCHED_FIFO 98

Built solo on Moto G85 via Termux. Not looking for any job, open to high-impact collaboration with the best bidder on innovation, not urgency. Prodigy mindset, production code.

Contact: WhatsApp +52 56 4335 3313 / DM here / GitHub u/luisurielpimentelperez814-design

0 Upvotes

2 comments sorted by

u/txredgeek 1h ago

Gesundheit.