game-music-emu files with multiple songs only play first song
Submitted by mih..@..il.com
Link to original bug (#720687)
Description
Hi guys! The GBS format supports multiple songs (from the Game Boy) in one .gbs file. See [1] for an example file. I've checked the git code [2], and even though the game-music-emu library supports playback and querying info about multiple songs in one file (via gme_track_count() and gme_start_track()), track 0 (first track of file) is hardcoded, thus ignoring any other tracks in the same file.
I would write the patch myself, but I don't know the GStreamer API well enough, I'm only familiar with the game-music-emu API. I've seen an article [3] about streamids, so I know this should be possible. If someone can hint to where I can look in the code, maybe a similar plugin that supports multiple tracks, or the API headers, I can make a patch.
[1] http://www.zophar.net/music/gbs/castlevania-2-belmont-s-revenge.html
[2] http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/gme/gstgme.c
[3] http://blogs.gnome.org/uraeus/2012/11/25/improved-handling-of-files-with-multiple-tracks-in-gstreamer/