libxmp / libxmp/xmp-cli

Add Loop Amount

Open
#14 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
84
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Currently you can set whether looping is enabled or not, but this obviously doesn't work when converting as it'll just loop forever and create a file of infinite size.

Would it be possible to add a loop amount option? e.g. "-l 2" so that it loops twice then ends.

I should clarify that this should be for modules that explicitly have a loop point and would normally loop during playback, not just general looping of tracks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the command-line option handling and the conversion path in this C CLI. Check how modules with an explicit loop point are detected and how playback currently repeats them. Done means an option such as "-l 2" limits those loops during conversion while modules without an explicit loop point are unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.