Subsongs from module music played through libopenmpt
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
Expected behavior of the wanted feature
libopenmpt has an ability to view, get and separately play subsongs. You can implement subsong switching on the same buttons that are used for switching between audio files if multiple were selected to be played by MPV.
This, however, wouldn't work if multiple audio files were selected to be played, so read the "Alternative behavior of the wanted feature" for the solution
Alternative behavior of the wanted feature
If multiple audio files were selected to be played, then we can add another bar above which lets you switch between subsongs instead. Or you can use chapters/markers instead (If i recall correctly, i saw that MPV has an ability to display them), however, i'm not sure if you can loop between them...
Log File
No response
Sample Files
One of the modules that has subsongs is this one at The Mod Archive: Beyond the Network. No need to download it, just use the "Play with Online Player" feature and it will show subsongs without playing it.
FFmpeg resources
FFmpeg's libopenmpt.c (line 47)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with FFmpeg's libopenmpt.c and the OpenMPTContext::subsong reference, then trace how mpv handles audio-file selection and chapters or markers. The feature needs an agreed interaction model before implementation. Done means subsongs can be viewed and selected reliably for a module, including when multiple audio files are queued.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100