Commit Graph
95 Commits
Author SHA1 Message Date
zarzet b1fd43ff0e test(perf): measure private native application pipelines
Add isolated library, download, playback, lyric, and log fixtures with durable-state and idle-work assertions. Native macOS suites pass; measurements exclude occluded-window samples and do not claim Android or iOS runtime performance.
2026-11-01 19:11:45 +07:00
zarzet c685372e79 fix(lyrics): preserve motion across interrupted scrolls
Carry unfinished row displacement into the next stagger and active-row transition. Regressions reproduce a 33.60 px jump on the old code. Keep the intended upward animation in both Material and Mornye.
2026-11-01 19:11:44 +07:00
zarzet 1e26dc26ca fix(network): handle HTTP redirects and clarify connection errors
Accept HTTP 303 redirects to canonical directory paths for GET and HEAD requests. Distinguish unreadable directory listings from local connection-save failures and add diagnostics without URLs or credentials.

Validation: 46 host tests passed, 2 SMB environment tests skipped; 3 Android integration scenarios passed; focused analyzer clean.
2026-11-01 16:38:13 +07:00
zarzet 08c4f6d7b0 perf(player): encode session songs here when no isolate starts
A queue write with 64 or more new songs encodes them on another isolate.
If that isolate could not start, every such write failed, and so did each
retry. The writer now encodes those songs on this isolate instead.

A dismissal reset the stored queue revision as soon as it was requested,
so a position save queued before it rewrote the whole row just before the
row was archived. The revision now resets when the dismissal runs, and that
position save stays a scalar update.

The Android background playback integration test's session store takes
the new savePlaybackSession signature, which it no longer matched.
2026-10-31 22:36:57 +07:00
zarzet ccbd891eee fix(library): stop scans when NAS connections are removed
Cancel scans when their source is removed or disabled, and retain offline library indexes when a NAS connection is deleted. Stop waiting on cancelled directory listings and consume late results without publishing them.

Validation: 95 related tests pass, with 2 SMB fixture tests skipped. WebDAV HTTP listing and streaming pass on Android 17 through a non-loopback address. Targeted analyzer and formatting checks pass.
2026-10-29 00:55:58 +07:00
zarzet 082cfca9af fix(mornye): show menu glass throughout its opening motion 2026-10-28 00:26:32 +07:00
zarzet 74f01b6f93 feat(android): add Android TV remote navigation 2026-10-25 16:36:32 +07:00
zarzet a397cf0d74 refactor(ffmpeg): call the FFmpeg modules directly
FFmpegService only forwarded each call to FFmpegProbe, FFmpegMetadata,
FFmpegConversion, FFmpegDecryption or FFmpegReplayGain with identical
defaults, so callers now use those modules and the test-only markers move
to the owning statics.
2026-10-23 22:44:37 +07:00
zarzet d407d8b374 chore(library): remove the test-only collections map export
Backups embed the worker JSON fragment from exportLibraryCollectionsJson, so
the map export mode and its benchmark only served tests.
2026-10-23 22:43:23 +07:00
zarzet b696d38e75 chore(library): remove test-only single-item collection mutators
Production removes wishlist, loved, playlist and playlist-track entries through
the batch paths. Device benchmarks now use the production one-item calls as
their per-track baseline.
2026-10-23 22:43:23 +07:00
zarzet e049a2b436 perf(mornye): share the bar read with resting side capsules
Compact chrome took five backdrop reads on every scroll frame: the bar
batch plus two stacked reads per side capsule. While folding, each capsule
now has a batch of its own (three reads); at rest the capsules join the
player's batch (one read). A GlobalKey keeps their lenses mounted.
2026-10-23 22:23:57 +07:00
zarzet 2899be8a53 fix(android): keep background playback resumable
Keep the media service foreground while paused, release CPU wake locks on pause, and demote the service on stop. Await native state publication before requesting audio focus, honor focus denial, and apply the initial MediaPlayer wake mode.

Validated with 141 playback tests and an Android 17 screen-off pause, resume, and stop integration test.
2026-10-23 20:52:10 +07:00
zarzet 2c910f4869 chore(mornye): remove the glass warmup re-export
The services file only re-exported the controller, so its two importers
now import the controller directly.
2026-10-23 19:17:37 +07:00
zarzet 499db205b5 style(test): format two tests after the repository rename 2026-10-23 15:55:30 +07:00
zarzet 9b74763262 fix(playback): allow MP3 playback with malformed ID3 tags
Apply the existing source-error classification during preparation so recoverable FFmpeg diagnostics do not reject playable audio. Fatal source errors still fail the load.

Validation: 15 player unit tests and two native libmpv tests on macOS passed, including repeated playback and seek with an invalid ID3 BOM.
2026-10-23 03:24:17 +07:00
zarzet fa2f73160b feat(network): add Subsonic and OpenSubsonic support 2026-10-23 03:15:19 +07:00
zarzet 2cc27c9c2d test(perf): wait for rendered lyrics progression 2026-10-22 02:58:01 +07:00
zarzet 11a9b9a4ec chore: remove redundant comments across the codebase 2026-10-22 01:41:09 +07:00
zarzet bcb1ee8b90 feat(desktop): play through media_kit with MPRIS and SMTC sessions
Windows and Linux now create a libmpv deck through media_kit; macOS,
Android and iOS keep audioplayers. Without libmpv the runtime falls back
to audioplayers.

- The equalizer becomes one libavfilter graph behind mpv's lavfi filter
  (input gain, peaking bands, balance, compressor, -0.5 dBFS limiter)
  after a planar float conversion. Changes set the af property again.
  Filters a libmpv build lacks are probed once and left out; the input
  gain then moves to mpv's volume. Filter failures are reported per player.
- Deck volume is scaled by the in-app output volume on mpv's cubic curve,
  position updates run on a timer, DSD sources throw when libmpv cannot
  open them, and exclusive output has a hook for a later setting.
- The in-app output volume persists across launches on every desktop OS.
- Previews go through the runtime's preview deck, so desktop previews
  follow the in-app volume.
- Linux publishes MPRIS over D-Bus and Windows uses SMTC through
  smtc_windows, both driven by the audio handler.
- The Linux CI job installs libmpv-dev.
2026-10-20 16:55:01 +07:00
zarzet dbb59e7ae5 build(desktop): bundle the staged ffmpeg and ffprobe in desktop apps
An Xcode "Embed FFmpeg" phase copies build/ffmpeg/macos-universal (or
the host architecture) into Contents/Resources/ffmpeg and signs the
tools; MORNYE_REQUIRE_FFMPEG=1 turns a missing stage into an error.
Linux installs them into lib/ffmpeg and Windows into ffmpeg\, warning
when nothing is staged. A macOS integration test converts and probes
with the bundled tools.
2026-10-20 16:13:08 +07:00
zarzet 41c450dcf4 Merge branch 'desktop/d5-playback' 2026-10-20 14:40:39 +07:00
zarzet fe32c72765 test(playback): play a generated tone through the macOS deck 2026-10-20 14:37:03 +07:00
zarzet e9849b6b4f feat(playback): add a PlaybackDeck seam and enable the macOS equalizer
Introduce PlaybackDeck, injected through PlaybackDependencies.createDeck,
so the runtime and AutoMix no longer depend on audioplayers types. The
audioplayers implementation becomes AudioplayersPlaybackDeck and keeps
Android's native USB path; it now owns the release mode and audio context
through configureOutput.

macOS gets the equalizer: the audioplayers_darwin fork shares its tap
source between iOS and macOS. On Windows and Linux, until their own deck
lands, enabling the equalizer reports it as unavailable.

Desktop uses an in-app output gain (playbackOutputVolume) that every deck
multiplies into its own gain, and the volume slider writes it instead of
the system volume. Music haptics, pause on mute and play on headphones
are hidden and disabled on desktop.
2026-10-20 14:37:03 +07:00
zarzet 375a489a1a test(desktop): document the bundled library in the smoke test 2026-10-20 14:34:20 +07:00
zarzet 067b1b69c8 test(desktop): smoke test the Rust FFI backend on a desktop host 2026-10-20 13:56:22 +07:00
zarzet 37e21b5712 feat(branding): rename app and native backend to Mornye
Rename the Dart package, Android and iOS identifiers, Rust crates, native libraries, and Discord plugin. Preserve legacy data readers and compatibility aliases.

Update localized branding, documentation, artwork, build tooling, and release artifacts. Route Telegram release notifications to @mornyeupdates and link @mornyecommunity.
2026-10-20 12:00:44 +07:00
zarzet 7600c169c7 perf(ui): improve Material and Mornye player and library smoothness
Reduce repeated artwork readbacks, lyric layout and subscriptions, and animation rebuilds. Virtualize Library sections and Settings search, bound artwork decoding, batch queue restoration, and honor reduced motion.

Add shared player benchmarks with 60/90/120 Hz budgets and regression coverage for lifecycle, scrolling, and accessibility. Verified with 337 host tests, six Android profile suites, scoped analysis, formatting, and diff checks.
2026-10-20 03:37:21 +07:00
zarzet 9ded49f31e fix(player): refresh late duration updates without reopening 2026-10-20 01:59:59 +07:00
zarzet 19056edf14 perf(library): cache unchanged SMB and WebDAV scan metadata 2026-10-20 00:28:55 +07:00
zarzet 7d2c1e6a21 docs(integration-test): index the device suites and their defines
Add integration_test/README.md: how to run one suite, why not to run the folder, performance_driver.dart usage, emulator and fixture requirements, every --dart-define and environment variable, and an index of all 54 files.

Derived from every file in integration_test/, the aggregate entry points, performance_driver.dart, performance_probe.dart and scripts/smb2_fixture_server.py.
2026-10-19 05:27:36 +07:00
zarzet e41e6ec432 test: share one FixedSettingsNotifier across tests
Replace 16 private SettingsNotifier fakes that only returned a fixed AppSettings with test/support/fixed_settings.dart. Mornye owner WIP tests and bespoke fakes are untouched.
2026-10-18 22:08:02 +07:00
zarzet 9063104799 chore: retire Go-era config and rename SMB fixture servers
Drop the gomod renovate rule, the stray em dash in crowdin.yml and the migration wording in check_rust_backend.sh. Rename the SMB fixture servers so test_*.py discovery no longer implies unit tests, and describe supported_locales.dart as hand-maintained since its generator never existed.
2026-10-18 22:01:32 +07:00
zarzet 317cd254c1 test: declare the path provider interface dependency 2026-10-18 00:46:10 +07:00
zarzet 2111afa468 feat(player): share volume controls across Material and Mornye 2026-10-15 19:16:17 +07:00
zarzet e3b69a25ef fix(download): probe M4A streams before preserving requested FLAC
Provider and decryption extensions describe the downloaded container, not
its audio codec. A decrypted M4A/MP4 can still carry FLAC, so a requested
FLAC output now reaches the codec probe instead of being preserved early.
Lossy streams keep their native container and still receive metadata.
2026-10-13 18:27:16 +07:00
zarzet 65dbce27f5 fix(automix): wait for advancing audio before starting fades 2026-10-12 12:11:27 +07:00
zarzet ef903248c0 feat(network): delete SMB and WebDAV tracks from the library 2026-10-11 16:14:01 +07:00
zarzet 3df644c453 fix(mornye): unify held navigation glass contour 2026-10-11 15:38:20 +07:00
zarzet e22e934525 feat(network): enable audio and hi-res analysis for network tracks 2026-10-11 14:34:04 +07:00
zarzet 5caa2ed588 chore(flutter): update SDK and packages with glass and navigation compatibility 2026-10-11 14:32:03 +07:00
zarzet 5eafd3acc4 perf(library): prefetch network metadata with bounded concurrency
Read up to three WebDAV tracks or two SMB tracks through a scan-owned metadata service while retaining listing order, bounded output, artwork and progress. Keep pause and cancellation independent of playback and add host regressions plus a native Android latency benchmark.
2026-10-10 23:22:41 +07:00
zarzet e9b7e84113 fix(webdav): retain tracks across equivalent parent URI encodings
Match decoded path components once in Dart and Rust while rejecting encoded separators and paths outside the selected folder. Add folder scan diagnostics, shared parser fixtures, a synthetic 1806-track traversal and native Android regression coverage.
2026-10-10 23:22:21 +07:00
zarzet 7066597259 feat(mornye): animate squircle menus from their trigger 2026-10-10 17:19:35 +07:00
zarzet 1cae561e6c feat(appearance): make Mornye glass outlines optional 2026-10-09 18:07:55 +07:00
zarzet 8251c16ca0 fix(repo): retry initialization before adding a registry
Coalesce repository startup and retry a failed owner initialization before changing the registry URL. Keep the original startup error and avoid rollback calls when initialization never succeeded.

Validation: 56 targeted Flutter tests passed (2 optional skips), analyzer clean; two Android profile integration cases verified unreadable extensions remain visible, the repository initializes, and encrypted settings reopen with their original key.
2026-10-08 20:30:24 +07:00
zarzet e4b6156249 perf(downloads): index queued positions for scheduling 2026-10-08 17:51:56 +07:00
zarzet 5a4d0716db perf(downloads): stop queue selection when slots fill 2026-10-08 17:25:11 +07:00
zarzet 1df593eb4f perf(downloads): index progress notification candidates 2026-10-08 17:05:13 +07:00
zarzet c6332e77d8 perf(downloads): reuse committed queue snapshots 2026-10-08 16:46:51 +07:00
zarzet a9578b35fa test(downloads): measure selectors after queue removals 2026-10-08 16:28:33 +07:00