mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
A console sound file often holds a whole game's soundtrack. The scanner now
reads its songs with libgme (gme_track_count and gme_track_info) and stores
one track_meta row per song, with the title, game, author, year and length
the file records. HES and KSS don't record their song count, so they expand
only through a sidecar .m3u, which libgme also reads for any format to name,
order and time songs; songs link to that playlist so the player can load it.
- track_meta, music_favorite_tracks and music_playlist_tracks are keyed by
song as well as file (migration 0144, both engines, both directions).
- Favorites and playlist endpoints take `tracks: [{rom_file_id, song}]`;
catalog rows carry `song` and `m3u_url`, and search also matches file
names.
- Chiptunes in soundtrack folders are re-read on every scan, since their
songs depend on the .m3u beside them; soundtrack uploads accept .m3u.
- The image builds the pinned libgme 0.6.5 natively for the backend; CI and
dev setup install the distro libgme0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A33pL6e6MvvBwhpcbXX9pH