Skip to content

feat: add Sound Menu and five sound effects - #8

Open
paviro wants to merge 20 commits into
RepriseOS:mainfrom
paviro:feature/sound-extensions
Open

paviro wants to merge 20 commits into
RepriseOS:mainfrom
paviro:feature/sound-extensions

Conversation

@paviro

@paviro paviro commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Merge after #5; needs the core at RepriseOS/repriseos#90 or later (moved stock rows, API 1.89).
Own commits: paviro/extensions@feature/appearance...feature/sound-extensions (the rest of the diff is #5 and below).

Ported from RevolaOS.

  • sound-menu: Settings > Sound, where Volume Limit was. Apple's Volume Limit, EQ and Sound Check rows move into it with their titles, values, screens and panes; without the extension they stay in Settings.
  • channels: stereo width, mono, left or right only, karaoke or swapped channels.
  • compressor: threshold, ratio, knee, makeup, attack and release, drawn under the transfer curve.
  • surround: the right channel delayed outside a band that stays in place.
  • bass-enhancement: five fixed filters at a strength from 25 to 100 %.
  • fatigue-reduction: four fixed filters in three strengths.

Each effect has a Settings row after Sound Check that opens a canvas editor, and host tests against a Python model (make check). All but Channels use the dsp library. Channels, Compressor and Fatigue Reduction are ported from Rockbox; Bass Enhancement and Surround are based on it.

Crossfeed, Balance and Edit EQ name sound-menu as their host and sit after the stock row they anchor on, in Settings without it. Crossfeed and Balance keep version 0.1.1 from #2, so they ship the hosted rows in that release. themes/rvt/data/extensions.json and its doc page list the six new icons. CI still pins an SDK at API 1.82, as for #2.

Tested in the emulator.

Screenshots

01-sound-menu 02-channels 03-compressor

The RepriseOS core answers the library id reprise itself. Its manifest
and header let rv.mk build extensions that import from it; there is no
reprise.rvx.
SDK 1.84 drops the RepriseOS slots from rv_api and lists libraries in a
[libraries] table. Night Shift, Crossfeed and Playback Log list reprise
as an optional library. On a core without it they skip the settings
migration, and Playback Log leaves the album artist empty instead of
refusing to load. Crossfeed lists dsp as required, and the catalog keeps
listing the required ids as requires. All three get a patch release.
rv_row and rv_menu_entry grew in SDK 1.86, so a core at that API refuses
images an older SDK packed, and the SDK refuses a manifest api below
1.86. Every manifest asks for 1.86. Balance and dsp get a patch release
with the rebuild, 0.1.1 each, beside Crossfeed 0.1.1, Night Shift 0.1.3
and Playback Log 0.1.2; reprise stays 0.1.0, it has no release.
rv_pane grew in SDK 1.89, so a core at that API refuses images an older
SDK packed, and the SDK refuses a manifest api below 1.89. Every
manifest asks for 1.89. The versions stay: the 1.86 rebuilds have not
been released.
The three features that leave the RepriseOS core, as extensions: the library
by Album Artist with Artist as the fallback, and a service that reads a
record's Album Artist; an item's tags and file properties from its context
menu, with a service other extensions open it through; and Play Next, Play
Last and Up Next with move, remove, browse and Clear Up Next.
shared/menu_visibility.h takes the Main and Music Menu checkboxes over from
the old core's MVIS record on first start.

The root Makefile, the catalog sources and the README list them; .gitignore
covers the per-extension build directories.
Playback Log 0.1.3 asks the Album Artists extension for the album artist on
each write, so the column is empty when the extension is not running or when
the Album Artist equals the Artist. It goes to api 1.85 for
extension_service. reprise_album_artist_read leaves the reprise library and
its header.
@paviro
paviro force-pushed the feature/sound-extensions branch from 1e27c3d to 08705e2 Compare November 28, 2026 01:41
Four features that leave the RepriseOS core, as extensions: Apple's EQ
presets through a filter chain with headroom plus a Custom preset of five
bands with its own editor screen; Settings > Clicker cycling Off, Speaker,
Headphones and Both; the accessory signature verifiers reporting success;
and the EU volume cap, warning and automatic lowering turned off.

On first start Equalizer imports the Custom EQ record the earlier core
stored through the reprise library, moving the precut of layouts without
Auto by one, and shows the Edit EQ row when Apple's EQ preference held the
Custom row. Whatever the record holds, the values are stored so a later
boot cannot import it. Custom EQ values that exist only in the pre-store
CFWEQ file start from the defaults.

The root Makefile, the catalog sources, the README and the NOTICE list
them. Equalizer keeps the core's settings-eq art; the other three take
Cupertino Icons glyphs rendered through the shared Settings icon pipeline.
iAP Auth Bypass and EU Volume Limit add no screen, so their listings carry
no screenshot and the catalog test checks screenshots only where a listing
has them.
The moved extensions ask for API 1.89 like the rest of the catalog: the
core at that API refuses images an older SDK packed, and the SDK refuses
a lower manifest api.
Apps and games from /Reprise/Apps/<id>/ and /Reprise/Games/<id>/:
games join Extras > Games, apps get an Apps row and pane under Extras,
and manifests in those folders are read without a signature. Game
data goes to /Reprise/Data/Games and /Reprise/Data/Apps instead of
iPod_Control. The catalog icon is a Cupertino Icons glyph.
The SDK that builds Homebrew packages lives in eapp-sdk/ of the
RepriseOS repository with RepriseOS/repriseos#108 and later; the Revola
repository it came from is private.
schedule.c and sun.c move from Night Shift to extensions/shared, compiled
into each extension that reads the time zone's sunset and sunrise. The icon
renderer learns to mirror a glyph.
The row opens a choice of Auto, On and Off with its own icon, and sits in
the Appearance menu after Dark Mode while that extension runs, after
Brightness otherwise. On Auto a read that finds no time zone at load is
retried a second later, so the first screen already follows the schedule.
rvt compiles a theme.toml folder into one .rvt file for the Appearance
extension: colour roles, accents and options, replacement art, and derivation
rules the iPod applies to the stock bitmaps at switch time (recolour, alias,
invert, relight). Classic's dark appearance is 109 bitmaps, 108 of them
derived on the device and one hand-made background, so no Apple pixels are in
the repository; the catalog records names, sizes, offsets and checksums only.
The core's own bitmaps are owned by the id reprise; the extension asset
catalog lists the core's settings-info and every first-party extension's.
Tests compare the encoder and lz copies with the SDK checkout and the
extension asset catalog with the build that the next commit's Makefile
writes; CI runs ruff and the tests.

Adapted from RevolaOS themes 6d0ea430642b.
Settings > Appearance, after Brightness: Theme, Accent, Dark Mode (Auto by
sunset and sunrise, On or Off), Menu Covers and Now Playing Cover. Classic's
dark look is derived from the stock artwork on the iPod at switch time; other
themes are .rvt files in /Reprise/Themes, compiled by the rvt compiler in
themes/, which also supplies the format header, the bitmap catalog and the
Classic asset the build packs. The first load imports the core's former Dark
Mode switch. Night Shift's row joins the Appearance menu after Dark Mode.
The root make also writes build/assets.json for the theme tooling.

From RevolaOS extensions a32d616f5a06.
RepriseOS moves the firmware there (repriseos#99). Appearance reads the
stock artwork from it; the rvt tool accepts it as --firmware.
Appearance picks views by their stock id. The day number of a 130 x 128
pane is a copy of the Calendars pane's and missed the native text rule,
so it turned light grey on the picture in Dark Mode. view_id passes the
id through ui_stock_view when the core has it (API 1.91).
Settings > Sound, where Volume Limit was: a list that takes Apple's
Volume Limit, EQ and Sound Check rows out of Settings and hosts the
audio extensions' rows after them. The moved rows keep Apple's titles,
values, screens and panes, and Volume Limit and EQ return to the list.
Without the extension every row is back in Settings. Needs a core with
moved stock rows (API 1.89).

From RevolaOS extensions a32d616f5a06.
Crossfeed, Balance and Edit EQ name sound-menu as their host, after the
stock row each anchors on in Settings, so they sit in Settings > Sound
while Sound Menu runs and keep their place otherwise.

From RevolaOS extensions 51ee278.
Channels, Compressor, Surround, Bass Enhancement and Fatigue Reduction:
five effects on the shared output stage, each with a Settings row after
Sound Check that opens a canvas editor, in Settings > Sound while Sound
Menu runs. Channels narrows or widens the stereo image or plays mono,
one channel in both ears, karaoke or swapped channels. Compressor turns
loud passages down. Surround delays the right channel outside a band
that stays in place. Bass Enhancement and Fatigue Reduction run fixed
filter banks at a chosen strength. All but Channels use the dsp library.

Channels, Compressor and Fatigue Reduction are ported from Rockbox; Bass
Enhancement and Surround are based on it. From RevolaOS extensions
a32d616f5a06.
@paviro
paviro force-pushed the feature/sound-extensions branch from 08705e2 to 5ca7dd4 Compare November 28, 2026 15:56
@paviro paviro changed the title feat: add Channels, Compressor, Surround, Bass Enhancement, Fatigue Reduction and Sound Menu feat: add Sound Menu and five sound effects 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