feat: son XMA2 décodé en WAV avec le décodeur Rust de TomBox #57

Merged
LooperSalty merged 1 commit from upstream-pr/57 into main 2026-11-21 19:05:05 +00:00
LooperSalty commented 2026-11-21 19:01:35 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-21T19:01:35Z.


Résumé

  • rust/anyxboxx-audio décode un fichier RIFF XMA2 en WAV PCM 16 bits : anyxboxx_xma <entrée.xma> <sortie.wav>. Le décodeur est la crate xma de TomBox, un portage en Rust du décodeur WMA Pro / XMA de FFmpeg (LGPL-2.1+), crédité dans THIRD_PARTY.md avec FFmpeg.
  • Vérification locale du décodeur sur l'échantillon public FATE de FFmpeg (wmapro/Beethovens_9th-1_small.wma) : écart maximal de 1 sur 16 bits, soit 101,5 dB de rapport signal sur bruit.
  • Limites :
    • fichiers à un seul flux (1 ou 2 canaux) ;
    • aucun fichier XMA2 public n'a encore servi à vérifier la chaîne complète.

Plan de test

  • cargo test -p anyxboxx-audio : en-tête XMA2, refus des autres formats et des fichiers multiflux, paquets corrompus sans plantage, en-tête WAV
  • tests/test_audio.py : le WAV produit est relu par le module wave de Python
  • pytest : 224 tests
  • CI

Refs #26

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL4XzbMR5No4bPXxPNW

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6533108910 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/57). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-21T19:01:35Z. --- ## Résumé - `rust/anyxboxx-audio` décode un fichier RIFF XMA2 en WAV PCM 16 bits : `anyxboxx_xma <entrée.xma> <sortie.wav>`. Le décodeur est la crate `xma` de TomBox, un portage en Rust du décodeur WMA Pro / XMA de FFmpeg (LGPL-2.1+), crédité dans THIRD_PARTY.md avec FFmpeg. - **Vérification locale du décodeur** sur l'échantillon public FATE de FFmpeg (`wmapro/Beethovens_9th-1_small.wma`) : écart maximal de 1 sur 16 bits, soit 101,5 dB de rapport signal sur bruit. - Limites : - fichiers à un seul flux (1 ou 2 canaux) ; - aucun fichier XMA2 public n'a encore servi à vérifier la chaîne complète. ## Plan de test - [x] `cargo test -p anyxboxx-audio` : en-tête XMA2, refus des autres formats et des fichiers multiflux, paquets corrompus sans plantage, en-tête WAV - [x] `tests/test_audio.py` : le WAV produit est relu par le module `wave` de Python - [x] `pytest` : 224 tests - [ ] CI Refs #26 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL4XzbMR5No4bPXxPNW
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LooperSalty/AnyXboxX!57
No description provided.