github phforner0/Xendroid-Plus XenDroid-v41-e179885e
Xendroid+ e179885e (build 41)

latest releases: XenDroid-v173-20c4aabb, v0.3.1, XenDroid-v169-2859aae4...
one month ago

Audio is sturdier: a late block fades out and back in instead of clicking, OpenSL ES catches up with AAudio, and crash-prone corners of the audio code are closed.

  • Audio hiccups fade out and back in instead of clicking, on AAudio and on OpenSL ES.
  • The media player's music (custom soundtracks) plays mono and multichannel songs as stereo, with its volume working on both backends.
  • Fixes for crashes and memory errors in rare audio paths.

Full Changelog: XenDroid-v40-7e480b3e...XenDroid-v41-e179885e

What's new

🔊 Audio

  • When a block of game audio is late, the sound fades out from where it was and the next block fades in, instead of clicking. The largest jump between two samples fell from 11.4 to 1.0 times the music's own.
  • OpenSL ES, the alternative backend: every driver has its own buffers (the game's and the music's wrote into the same one), it pauses with the game instead of stopping, and the music's volume attenuates.
  • A NaN in the game's audio is silenced instead of reaching the speaker.
  • With apu_aaudio_log_stats, the AAudio stats line shows how long its callbacks take: 7 to 32 µs on average on the POCO F7, against 5.3 ms between callbacks.

🛠️ Fixed

  • Memory written out of bounds when a game registered a ninth audio client or unregistered one twice or with a bad handle.
  • A crash window when a song stopped while its audio device was still calling back.
  • Mono songs read past their buffer, and 6-channel ones played as noise, in the media player.

✅ Tested on the POCO F7 (Snapdragon 8s Gen 4, Android 16) with Gears of War 3: playback, pause and resume and an output device change on both backends, the audio captured from the phone against the previous build, and the audio tests on the phone's own CPU.

⚠️ Still open

  • After a pause, AAudio's queue stays up to ~16 ms deeper; it did before too.
  • The media player's fixes were checked in the code: no game tested plays its own music.
🇧🇷 Em português

O áudio ficou mais firme: um bloco atrasado some e volta suave em vez de estalar, o OpenSL ES alcançou o AAudio e cantos do código de áudio que podiam travar o app foram fechados.

  • Engasgos de áudio somem e voltam suaves em vez de estalar, no AAudio e no OpenSL ES.
  • A música do player (trilhas personalizadas) toca músicas mono e multicanal como estéreo, com o volume funcionando nos dois backends.
  • Correções de crashes e erros de memória em caminhos raros do áudio.

🔊 Áudio

  • Quando um bloco do áudio do jogo atrasa, o som sai suave de onde estava e o bloco seguinte entra suave, em vez de estalar. O maior salto entre duas amostras caiu de 11,4 para 1,0 vez o da própria música.
  • OpenSL ES, o backend alternativo: cada driver tem seus buffers (o do jogo e o da música escreviam no mesmo), pausa junto com o jogo em vez de parar, e o volume da música atenua.
  • Um NaN no áudio do jogo vira silêncio em vez de chegar ao alto-falante.
  • Com apu_aaudio_log_stats, a linha de estatísticas do AAudio mostra quanto os callbacks demoram: de 7 a 32 µs em média no POCO F7, contra 5,3 ms entre callbacks.

🛠️ Corrigido

  • Escrita fora da memória quando um jogo registrava um nono cliente de áudio ou desregistrava um duas vezes ou com handle ruim.
  • Uma janela de crash quando uma música parava com o dispositivo de áudio ainda chamando de volta.
  • No player de música, músicas mono liam além do buffer e as de 6 canais tocavam como ruído.

✅ Testado no POCO F7 (Snapdragon 8s Gen 4, Android 16) com o Gears of War 3: reprodução, pausa e retomada e troca de saída nos dois backends, o áudio capturado do aparelho contra a build anterior e os testes de áudio na própria CPU do celular.

⚠️ Ainda em aberto

  • Depois de uma pausa, a fila do AAudio fica até ~16 ms mais funda; já era assim.
  • As correções do player de música foram conferidas no código: nenhum jogo testado toca música própria.
📜 Every change since build 40 · 1 pull request, 10 commits
  • #19 Áudio: pipeline auditado — memória, falhas sem estalo, OpenSL ES alinhado ao AAudio e diagnóstico do callback · @phforner0
    • Audio: a client refused when every slot is taken, not written outside them · a7cdc7e3
    • Audio: the media player's driver shut down before its semaphore is freed · 017ccf74
    • Audio: gaps concealed without clicks, in a renderer the host tests drive · 40f1f254
    • AAudio: the callbacks' own time in the stats line · a99e73b0
    • OpenSL ES: buffers of its own, gaps concealed, the media player's format · 8045c903
    • XMP: songs played as stereo, whatever their channels · 792cd9d7
    • Audio: UnregisterClient and Restore refuse an index they cannot use · 1b8c298c
    • Audio: a NaN from the guest silenced; the renderer tested on both paths · 8826f8e8
    • Docs: the audio pipeline, what the audit found and how it was checked · 53996264

Built by Xendroid+ #41 from e179885e, signed with the release key.

File Size SHA-256
XenDroid_Release_e179885e.apk 40.1 MiB 6dd3f1c379162667f0d69c6322b804ff3cb89befc76f5593eaad2fffc216bc47

Don't miss a new Xendroid-Plus release

NewReleases is sending notifications on new releases.