Skip to content

feat: add Sleep Timer and two MP4 audio fixes - #6

Open
paviro wants to merge 4 commits into
RepriseOS:mainfrom
paviro:feature/media-fixes
Open

paviro wants to merge 4 commits into
RepriseOS:mainfrom
paviro:feature/media-fixes

Conversation

@paviro

@paviro paviro commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Merge after RepriseOS/repriseos#100.

Ported from RevolaOS. The three extensions cover what RepriseOS/repriseos#75, RepriseOS/repriseos#63 and RepriseOS/repriseos#62 by kayboll do in the core; kayboll is co-author of each commit.

  • sleep-timer: a Sleep Timer row in the Now Playing context menu lists Apple's sleep timer choices and sets Apple's timer. While it runs, Now Playing shows the minutes left before the shuffle icon.
  • fast-seek: a seek in an AAC or Apple Lossless file starts Apple's sample walk at the chunk that holds the target.
  • long-audio-fix: AAC and Apple Lossless files with an edit list play past 2^31 media ticks (13:31:35 at 44.1 kHz).

Sleep Timer needs RepriseOS/repriseos#100 to open its list from the context menu. The manifests ask for API 1.82, which #100 does not change, so the release tags wait for a RepriseOS release that includes it.

The catalog test checks screenshots only where a listing has them, since Fast Seek and Long Audio Fix have no screen.

Tested in the emulator.

Screenshots

01-sleep-timer-list 02-now-playing-minutes

paviro and others added 3 commits November 27, 2026 15:03
The catalog test required a first screenshot for every extension that is
not a library. An extension without a screen has nothing to show, so the
test now checks the alt text and width of each screenshot a listing has.
Apple's MP4 parser compares the 64-bit decode time with the edit list after
sign-extending its low word, so an AAC or Apple Lossless file with an edit
list ends at 2^31 media ticks: 13:31:35 at 44.1 kHz. The extension binds the
three compare words with loads of the high word. Disabling it restores
Apple's compares.

From RevolaOS extensions c179e6dc21ea. The same fix as RepriseOS pull
request 62 by kayboll, arrived at independently.

Co-authored-by: kayboll <16205646+kayboll@users.noreply.github.com>
Apple's MP4 parser seeks an AAC or Apple Lossless file by stepping through
every sample up to the target, from the first sample for a backward seek.
A jump of several hours in an audiobook takes seconds and many disk reads.
The extension filters the entry of the sample walk, finds the chunk holding
the target from the in-memory time-to-sample and sample-to-chunk tables and
starts Apple's walk at that chunk's first sample. Files with more than one
edit or more than one frame length before the target seek the stock way.

From RevolaOS extensions c179e6dc21ea. The same approach as RepriseOS pull
request 63 by kayboll, arrived at independently.

Co-authored-by: kayboll <16205646+kayboll@users.noreply.github.com>
Sleep Timer in the Now Playing context menu opens a full-width list of
Apple's sleep timer choices with the active one highlighted; choosing one
sets Apple's timer, the one Extras > Alarms > Sleep Timer sets, and
returns to Now Playing. While it runs, the extension filters the Now
Playing model's shuffle picture and draws the minutes left and a moon
before it.

From RevolaOS extensions c179e6dc21ea. Based on RepriseOS pull request 75
by kayboll, which opens the stock Alarms list instead.

Co-authored-by: kayboll <16205646+kayboll@users.noreply.github.com>
@paviro
paviro force-pushed the feature/media-fixes branch from 0815a8c to 928b9ae Compare November 28, 2026 15:56
@paviro paviro changed the title feat: add Sleep Timer, Fast Seek and Long Audio Fix feat: add Sleep Timer and two MP4 audio fixes Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant