Commit Graph
105 Commits
Author SHA1 Message Date
zarzet 5ac8b48ee4 test(autoplay): train the Dart taste reference in the followup test itself
The native backend followup test compared and timed the native taste
trainer against trainAutoplayTasteDartInBackground, which 643123661
removed as unused, so the file no longer analyzed. The test now runs the
public Dart trainer on a background isolate itself.
2026-11-16 18:13:59 +07:00
zarzet 962e582acc chore(flutter): move to Flutter 3.50.0 and the material_ui packages
Flutter 3.50 deprecates its built-in Material and Cupertino libraries in
favour of the material_ui and cupertino_ui packages. The imports move
with the official fix (dart fix, migrate_design_widgets); the app's old
two-library theme bridge collapses into one Theme type.

- MaterialExpressiveScope keeps the complete host theme nearest its
  child. The reduced copy made for the expressive widgets now shares the
  app's Theme type and would hide component themes and extensions.
- LegacyThemeBrightness hands the brightness to the glass package, which
  still reads Flutter's built-in theme.
- appLocalizationsDelegates lists the material_ui localization delegates;
  the generated list still names the built-in ones.
- Tests: findByTooltip and pageBack replace the flutter_test helpers that
  only know the built-in widgets, and several tests that had gone stale
  against earlier app changes are repaired.
2026-11-15 23:33:29 +07:00
zarzet 78fdba8f1c chore: clear three analyzer findings left on main
An integration test still passed the removed artworkForeground argument,
a notifier exposed a getter the Riverpod lint reports on some runs, and
one if statement had no block.
2026-11-15 21:51:30 +07:00
zarzet c63123792f test(store): use the multi-repository calls in the recovery integration test
The test still called setRepoRegistryUrl and getRepoRegistryUrl, which
the multi-repository store removed, so the integration tests no longer
compiled. It now sets the list and resolves a URL, which needs no
network.
2026-11-11 04:55:37 +07:00
zarzet 9e5313ff22 feat(playback): apply speed and pitch in every deck
Every deck now multiplies its rate by playbackSpeed and applies
playbackPitch at once, also mid-song and while paused, and reports
what it can do through PlaybackDeck.tempoSupport.

- audioplayers: effective rate, and a per-player setPitch on the forks'
  channel, sent only when it differs from the default and again for
  each source so a refusal reports speed only for that source. Direct
  output ignores both; Windows and Linux report speed only.
- Old Android engine: setPitch in the vendored audioplayers_android,
  applied through MediaPlayer playback parameters with the speed.
- media3: setPlaybackParameters (speed and pitch) replaces setRate; the
  AudioTrack buffer is sized for 2.5x.
- libmpv: speed and audio-pitch-correction, and a semitone shift in the
  equalizer's af chain: a lavfi rubberband filter where the build has
  one, otherwise resampling with mpv's scaletempo.
- Cast reports none; switching decks report their active deck.
2026-11-11 01:52:25 +07:00
zarzet eecae8fed3 fix(windows): use the default WASAPI exclusive buffer 2026-11-06 20:23:27 +07:00
zarzet 0ad3cc36fb fix(windows): update WASAPI backend and use driver minimum buffer 2026-11-04 15:58:22 +07:00
zarzet 5f369d77be fix(android): restore keyboard viewport after backgrounding 2026-11-04 01:17:58 +07:00
zarzet ab7157aa0a perf(backend): migrate selected data jobs to Rust
Route file hashing, AI lyric reply parsing, cache statistics and Autoplay taste training through native workers. Preserve model persistence and isolated compatibility fallbacks, with native parity and full-route performance coverage.
2026-11-03 13:17:12 +07:00
zarzet f53154c159 feat(android): add Google Cast audio output 2026-11-01 21:22:09 +07:00
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