Some people use the app only to download and play in another app.
With External player chosen, what only works with the built-in player
was partly hidden already (mini player, Continue listening, queue
actions) and partly left in place, shown disabled or doing nothing
useful. It is now hidden everywhere, so the app reads as a downloader
and file manager:
- Home: mixes, Recently Played and On repeat. Shortcuts keep four
tiles; Shuffle, Equalizer and Listening stats give way to the next
usable ones and are not offered in the picker. The Shuffle shortcut
used to start the built-in player with no player on screen.
- Library: Shuffle on the song list, albums, folders and mixes (another
app takes one song at a time) and the Rewind banner.
- Profile: Now playing, the listening sections and Listening stats.
- Settings: Playback shows the player choice and a note naming the way
back; its entry says songs open in another app. Lyrics keeps what is
saved with a download and hides the lyrics view settings. The
Continue listening and Swipe to queue switches are hidden, and
Settings search leaves the same entries out.
Nothing is deleted: the queue, the listening record and every hidden
setting keep their values and return with the built-in player.
Screens read playerUiEnabledProvider, which stays on while a remote
device is controlled; settings read AppSettings.usesBuiltInPlayer.
A broad runtime pass, reviewed hunk by hunk. Kept are the changes
that leave behaviour and appearance as they were:
- Lists and rows: the swipe background, the track card shape morph
and the queue artwork morph build their animation only while it
runs; filtered lists and completion lookups are cached or indexed.
- Player: provider watches hoisted out of per-line builders, repaint
boundaries around the cover, backdrop and controls, idle timers and
shimmer stop while the route is hidden or the app is paused.
- Painters: the equalizer grid, the compare selection and the squircle
path no longer redo static work on every frame.
- Startup and settings: extension storage prepares beside the settings
load, the theme writes only the keys that changed, and one-off
cleanups record that they ran.
- Scrobbling ignores position-only ticks, a received lyrics
translation update is compared directly, and large native data job
payloads encode off the main isolate.
Left out on purpose: SQLite pragmas and a new index (unmeasured),
the search prefilter for albums and artists, the lyric line rework and
word sweep steps, cover fade changes, sheet sizing, audio writer
timing, widget cover caching, and all Swift changes, which cannot be
compiled here.
Fixed on the way in:
- A batched download status update kept the old path and error where
the direct update clears them.
- The romanizer shortcut skipped 52 letters outside the Latin
alphabet that sit in symbol blocks, such as the ohm sign.
- The two lazy morph states created a second animation controller on
a single ticker provider, which asserts the second time a row
becomes the current song.
The Material Home kept a grey prompt between its greeting and the first
section. It was written as the lead into the search field ("What are we
listening to?", "Got a link? Drop it in the search"), and stayed behind
when Search became its own tab, so the page opened on three lines of text
before any content and two of its three prompts pointed at a field that is
no longer there. The row and its strings are gone; the Mornye Home never
had it.
That row was also where a tap showed "Search is here now" above the Search
tab. With the row gone the hint shows by itself instead: once, on Home,
for an install that ran a build with the field on Home. A settings
migration notes that it is owed (a new install is not), and it is settled
when the hint has stayed up for two seconds. A touch dismisses a tooltip,
so one that comes sooner leaves it owed and the next launch shows it
again, still at most once per run.
Home gains a "Recommended for you" shelf in both styles, after Recently
added: songs the person does not have that resemble the ones they play
most, added last and loved.
The songs come from the machinery behind "Suggested songs": an extension
that suggests related songs, else a metadata provider searched by artist.
Three seeds are taken from a pool of up to 45 Library songs, and each day
starts from other songs of the pool. One request is made per day; the
answer is kept for the day, and a failed request falls back on the last
day's songs. Songs already in the Library are left out when the shelf is
shown, so a recommended song leaves it once downloaded. Seeds from files
carry no ID, since a file's ID may be its path.
As on search results, a tap downloads the song and a long press or a right
click opens its actions; a song with a preview has a preview button on its
cover. The shelf is absent while it has nothing to show.
Appearance > Layout has a switch for the shelf, on by default.
loadCollectionSuggestions takes the number of songs to return.
isDesktopPlatform is only known at run time, so phone builds carried
the desktop player engine, the desktop diagnostics and the Windows
folder lookup. With --dart-define=MORNYE_MOBILE=true it is a
compile-time false and the compiler drops what only desktop reaches.
Android and iOS release builds pass the define.
Three call sites reached desktop code without asking
isDesktopPlatform; they ask now. Without the define (desktop builds,
tests) nothing changes.
The logo on the About page, in setup and on the Rewind card is decoded
at the size it is shown. Split artist names are remembered for the 512
most recent credits, and the release year pattern and the desktop
inspector blur are built once.
A listener suggested showing the track name with the line being sung under it, where the artist's name is, instead of the line replacing the title.
Lyrics settings gain a Keep the song title switch under Lyrics on lock screen, off by default and available while that one is on. With it the line goes out as the session's artist and the title stays; in a break, while paused or unlocked the artist is back, as the title was before. Switching it while a line shows moves the line at once.
The line still shows in the same parts as in the title, so nothing about its timing changes.
After a long press selects a song, the finger can slide over more songs
to select them, as in a photo gallery. Sliding back releases the songs it
had passed but nothing selected before, and the list scrolls while the
finger rests near its top or bottom edge.
A row keeps its own long press and hands the pointer to a
DragSelectController, which follows it on the global pointer route: the
won long press already keeps the list from scrolling, and the route
outlives a row that is rebuilt or scrolled away. Rows register with
DragSelectItem so the controller can find the one nearest the finger,
which also works in a grid. A held row that is kept alive off screen has
no place on it and is skipped.
Library Songs keeps the hold and drag onto a playlist: the first hold,
and a hold on a selected song, drag as before. Once selecting, a hold on
any other song selects it (still with the range from the song selected
last) and slides; a slide replaces that range with the songs it passes.
LibraryPlaylistDragSource takes an enabled flag for that, and the card
gets the long press whenever the drag source does not.
Singles, the folder view, album, playlist, mix and Library playlist
pages slide from the first hold through SelectionModeMixin.holdToSelect.
In selection mode a long press there now selects the row; the folder
view and Library playlist rows toggled it before. Desktop is unchanged.
A full screen cover is cropped at the sides so it reaches down to the title: about a fifth of its width on a tall phone. A tester pointed at covers that lose their lettering or their frame that way.
Playback settings, under Cover art, gain Whole cover (off by default). With it on the cover stays square at the full width and ends above the title, in both styles: in Material it fades into the blurred cover behind the page, in Mornye into its soft copy and then the page colour, as a square video already does. Cover fade applies to it as before.
The switch is disabled while the cover is a card. Motion artwork keeps its own shape either way.
A tester asked for a way to hide the audio figures. The Library's Audio quality setting gains Simple: a song shows Hi-Res (24-bit or more) or Lossless for FLAC, ALAC, WAV and AIFF, Dolby for AC-3, E-AC-3 and AC-4, and the format's name for anything else. An unknown format keeps its name, since it may be lossy.
With Simple chosen the format line of the full player shows the same one word in place of format, sample rate and bitrate. It still opens the audio details. The other label modes leave the player as it was.
Dolby names the codec only: the app does not tell Atmos apart in a file.
A tester asked for a way to change how much of the cover the blur takes. Playback settings, under Cover art, gain Cover fade with three choices: Short, Medium and Long. Medium is the look so far, so nothing changes until it is chosen.
The choice scales the faded part of the cover (0.65, 1 and 1.4 times) in both styles: the Material full screen cover, the Mornye full screen cover and Mornye's motion artwork, each from its own medium start. The row is disabled while the cover is a card, except in Mornye with motion artwork on, where videos are always full screen.
The three-way row of the headphone setting became a shared private row for both settings.
Flutter's reorderable lists place the dragged row in the overlay by screen
positions. With Interface size off 100%, or on a tablet, where the app
scales itself, the overlay's pixels are not screen pixels, so the row was
drawn up and to the left of the finger (at 85%, about 15% of the finger's
distance from the top left corner), far enough to push its cover off the
screen.
ScaledDragProxy wraps the dragged row and moves it to where the finger is,
from the overlay's own scale; it does nothing at 100%. It follows the row
back to its place on a drop as well. Every reorderable list uses it: both
queues, playlist and collection order, album track order and the two
provider priority pages.
FlutterView.display throws a null check error when the engine has replaced
its display list and the view does not yet name one of the new displays,
which happens while a window is dragged on Windows. Every read of the
display now goes through displayOf, which gives null in that case.
Fixes#930
A DAC that tops out at 48 kHz refused 96 kHz songs, so they fell back to
Android's mixer and played through a DAC still set to the low level the
direct driver leaves it at, which sounded like silence.
Direct USB now tries the other standard rates when the DAC refuses the
song's own: lower rates first, the song's own family ahead of the rest,
then higher ones. The song is converted with a Kaiser windowed sinc
polyphase filter (130 dB stopband, passband to 0.907 of the lower
Nyquist), with triangular dither for a 16-bit output. The status line
names both rates and Audio info no longer calls such a song bit-perfect.
DSD is never converted, and a DAC is asked at most four times.
An uncaught error's log line now ends with the first frames of its stack:
a tester's export held two null-check errors with nothing to trace them
by. A song that streams while USB bit-perfect output is on logs that the
USB output is not used for it, which a report of songs losing exclusive
output could not show.
Portable players often do not read the cover inside a song and look for a
folder.jpg beside it. A new Files setting, Save Album Covers (off by
default), saves the cover a download carries into the album's own folder,
with a size choice from the sizes of Embedded Cover Size. The rule of the
animated cover applies: only folders that hold one album get the file, and
one already there stays. A PNG cover is saved as folder.png; other image
formats are not saved.
The folder writing of the animated cover moved to SongFolderFile, which
both covers use for local folders, Android documents and network storage.
While the setting is on, Remove Empty Folders counts folder.jpg and
folder.png as leftovers of a deleted album. While it is off they keep
their folder, as before.
Issue #913
One-line doc comments and inline comments that only repeat the name, the
type or the next statement of what they describe, in the Dart, Kotlin and
desktop runner sources. Comments that state a reason, a constraint, a
unit, a value set or a platform quirk stay. No code changes.
A car over Bluetooth already counted as a connecting output, but nobody
looking for it would open a headphones setting. The title, descriptions
and settings search now mention cars, in English and Indonesian. The
default stays Off.
The Indonesian settings test scrolled to the first segmented control of
the page instead of this one and failed on the Mornye style; it scrolls
to the title now.
A lossless conversion that changes the sample rate could only pick SWR
or SoXR, each at one fixed setting. Add a quality slider under the
resampler choice, moved by dragging or by a tap anywhere on its track,
with the level named beside it and what it uses below.
SWR offers Fast, Medium, High, Very high and Best (16, 32, 64, 128 and
256 filter taps; the two highest also raise the Kaiser window's
rejection). SoXR offers Medium, High, Very high and Best (16, 20, 28 and
33 bits of precision; 20 and 28 are SoX's HQ and VHQ recipes).
The defaults are what a conversion used before: the library's own SWR
filter (Medium) and the most SoXR offers (Best). A conversion sent to a
paired computer carries the level; one from an older phone gets the
default.
A tag such as "Rock; Pop" was one genre of its own. Split a tag on
semicolons, commas, the NUL between ID3v2.4 values and the user's own
genre separator, the list rule the tag writer already follows. Slashes
and ampersands stay inside a genre, so "Hip-Hop/Rap" and "R&B" remain
one each.
A genre now counts and lists the songs of every tag that names it. The
song query takes those tags instead of a single one.
People asked that a tap on a Library song play it rather than open its
details. The owner made playing the new default, with a choice in
Library settings that brings back the old details tap. Saved settings
from before the choice load as Play, and backups carry it through the
settings JSON.
Each native lyrics parse spawned one isolate to UTF-8 encode the text
and another to rebuild the models from the decoded result. For lyrics
up to 64 KB (about 160 word-synced TTML lines) both steps now run on
the calling isolate: measured on the host at that size, encoding takes
about 0.16 ms and rebuilding about 0.2 ms, while sending the decoded map
to an isolate already copies it on the calling isolate and adds a spawn.
The bridge decodes results of this size inline already. Larger lyrics
keep both background steps, and the parsed models are unchanged.
Finish the right-to-left lyrics from PR #844 on the current lyrics code.
A line's direction now follows the Unicode paragraph rule: its first
strong letter decides, so a Latin line with one Arabic word stays left
to right, and digits, punctuation, marks, emoji or a byte order mark
decide nothing. A line without letters (an instrumental "..." or a gap)
takes its neighbour's direction. The scan is a rune loop over sorted
ranges with an ASCII fast path, in lib/utils/text_direction.dart, and
replaces the PR's any-RTL-character regex and its re-export from
player_lyrics.dart.
- The synced view works the directions out once per set of lyrics,
with its line keys, and lays every row out in its line's direction,
so the row cache, reveal, scale, backing vocals and duet alignment
follow it. Mornye's line measurement uses the same directions.
- The word sweep orders a word's runs by the line's direction and
sweeps each run the way it is laid out, so a Latin word inside an
Arabic line fills from its left.
- A translation or pronunciation reads in its own direction and stays
on its line's side, timed or not. Phrase-aligned pronunciation stays
off for right-to-left lines.
- Plain lyrics keep one text when every line shares a direction and get
a text a line when they mix; the directions are cached per lyrics.
- The lyric line under the header reads, and slides, in the line's
direction: a long Arabic line moves right to bring its end in.
- The editor keeps each field's direction in a notifier that changes
only with the first letter's script, instead of rebuilding the field
on every keystroke.
- The share card and mini player use the same rule.
In a right-to-left app a Latin line now reads left to right from the
left edge; the repaint test records that.
Co-authored-by: itzSho3aib <mamomema123@gmail.com>
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.
Auto-convert now offers M4A (ALAC) next to MP3, AAC, Opus and FLAC
(issue 900). ALAC follows the FLAC rules: lossy and DSD sources are
kept, the maximum bit depth, sample rate and Smart Dither settings
apply, and an ALAC file within the limits is left alone. Only the
probed codec marks an .m4a as ALAC, so AAC is never taken for it.
The Dart finalizer reuses the manual ALAC converter and embeds tags as
M4A. The Android background finalizer encodes ALAC with planar
samples into the ipod muxer, keeping tags and artwork, and records the
.m4a container instead of falling back to MP3.
The switch sits under Lyrics Provider Priority and is on by default. On,
the backend takes word-synced lyrics over synced lyrics, and synced over
plain text, from any enabled provider, with provider order deciding
between equals. Off keeps provider order only: the first provider with
lyrics is used.
The setting reaches the backend as the prefer_best_timing fetch option,
so the player's online lyrics and the lyrics fetched for downloads follow
it alike. Settings search finds it next to the provider priority.
A tester's phone slipped and the volume bar went straight to the top
with earbuds in. A new Confirm loud volume switch in Playback (Volume
and transitions, off by default) picks a level of 60, 70, 80 or 90
percent (80 by default). With it on, dragging, tapping or stepping the
app's volume bar from at or below the level to above it stops at the
level and asks first, with Cancel as the default. Continue sets the
volume where the user asked; the bar then moves freely until the volume
is back at the level or below, and the next crossing asks again.
The dialog takes the touch, so a long drag asks once, and after a
cancel the same touch stays at the level. A volume that is already
above the level (volume buttons, the system, a restored session) does
not ask when the player opens or while the bar moves within the loud
range. The bar asks the same way when it sets the volume of a paired
computer or a USB DAC. Volume buttons, keyboard shortcuts, the mouse
wheel on desktop and commands from a paired device are not limited.
The end of a touch on the expressive slider reports the value it was
last given, which can be a frame old; while the dialog is open that
report no longer moves the bar.
SoXR conversions used the Very High Quality preset (28 bits). They now
use the library's highest precision (33 bits) with a ripple-free
passband and exact handling of irregular rate ratios (cheby).
Position reports arrive every half second and land a few tens of
milliseconds either side of the lyric clock. One just behind a line's
end brought that line back for a moment: it lit again, and a list
holding on an overlapping line scrolled back and forward again. This
shows with TTML, whose lines carry end times and overlap. The word
sweep stepped back a quarter of the difference on such a report.
The lines now keep the later position they were already set for unless
the report is a seek away, and the sweep closes the difference by
running slightly slow or fast for two seconds instead of stepping.
Lyrics were drawn for the audio position at the moment of drawing, but
a frame reaches the screen about two refresh intervals later (33 ms at
60 Hz). A line change also waited for the next frame, and a word-timed
line then arrived under a 320 ms fade while its emphasis eased in
slowly. Together TTML lyrics ran 50 to 100 ms behind the sound.
Playing lyrics now change line and sweep words two refresh intervals
ahead of the audio position, scaled by the playback speed. Paused,
loading and scrubbed lyrics still show the exact position. A word-timed
line fades in over 160 ms and brightens at once.
A mono song on a stereo-only DAC now goes out with each sample unchanged
on both channels, tried after the song's own layout and before a lossy
source drops to 16-bit; the first refusal still names the requested
format.
A declined or unanswered USB access prompt is remembered for the session
per DAC (vendor and product id), so later songs report it without
prompting again. Turning the Direct USB driver on, or plugging the DAC in
again, clears it, and the status says so.
Direct USB reduced every failure to "unsupported", so the app showed one
generic label and a tester with a working DAC could not tell why. It
also played only FLAC, WAV and DSD.
Failure reasons: the native side now reports format_unsupported,
decoder_unavailable, channels_unsupported, dac_format_rejected,
dac_unsupported, dac_open_failed and timeout, with the source codec,
rate, depth and channels. Rust errors are classified by message, and
"No compatible USB format" now names the request and the PCM layouts
the DAC offers, for the log. A file Direct USB cannot play is probed
from its headers before the USB permission prompt, so it reports its
reason without a prompt. The Android 14 mixer and AAudio paths reuse
the source reasons, and the mixer reports a refused rate or depth and
a timeout separately. A source that stops decoding during playback
pauses with decode_failed instead of route_changed.
Formats: with Direct USB, MediaCodec decodes ALAC and FLAC in MP4/Ogg
losslessly, and AAC, MP3, Opus and Vorbis as lossy sources.
Lossless sources up to 16 bits use integer output; 17 to 24-bit
sources use float output, which BitPerfectPcm checks sample by sample.
32-bit lossless sources are refused. Lossy output is rounded to the
DAC's precision without dither, at 24 bits or 16 bits when the DAC
offers nothing deeper. The decoder is primed before the device opens,
so HE-AAC reports its real rate; a later format change stops playback.
Encoder delay and padding are trimmed by frame count, and a seek flushes
the decoder and skips to the exact frame. Multichannel files are
refused, never downmixed. libFLAC and WAV sources are unchanged.
The status label and Audio info mark a decoded lossy source, so a
direct transport is not shown as a bit-perfect lossless chain.
Adds the Speed and pitch controls: a 0.5x to 2x speed slider with quick
choices, Keep pitch, a pitch slider of -12 to +12 semitones and Reset.
The sliders preview through the shared playbackSpeed and playbackPitch
notifiers while dragging and save on release; playbackTempoSupport
disables what the current output cannot do, with a short note. The
sheet opens as a compact dialog on desktop. Playback settings gets a
row that shows the current values, and settings search finds it.
Now Playing, the desktop player and lock screen lyrics read only the
lyrics inside the song file, so a WAV or any song with its lyrics in a
.lrc file beside it showed no lyrics, while the song details card did.
The player now reads that .lrc file when the song holds no lyrics of its
own, for local files, Android folders and iOS alike. The song's own
lyrics still come first. Edits and saved translations of .lrc lyrics go
back into the .lrc file instead of the song.
The song details card also reads the .lrc file of an Android document,
which the lyrics reader cannot reach.
Bilingual LRC files time each translation like the line it translates.
When most moments of a song are such a pair, both lyrics parsers now
show the second line as the first line's translation. A few shared
timestamps, such as simultaneous singers, stay separate lines.
Appearance > Layout gets an Interface size slider, 80% to 130% in 5%
steps, default 100%. AdaptiveUiScaler multiplies it with the automatic
tablet and TV scale, so every page, dialog and control reflows at the
chosen size on phones, tablets and desktop, in both styles. The size
applies when the slider is released.
The scaler keeps its content under a GlobalKey, so starting or stopping
a scale (this setting, or a tablet crossing its breakpoint) keeps open
pages and scroll positions instead of rebuilding the app. The macOS
title bar row divides by the scale so it stays aligned with the native
traffic lights at every size.
TV output goes to HDMI or a soundbar, which the platform spatializer does
not handle, so the row and its settings search entry are hidden there like
Skip silence. The stored setting keeps its default of auto.
A Spatial audio switch in Playback settings, on by default, in the Audio
output group of both styles: after Skip silence on Android, after
exclusive output on macOS, and in its own Audio output group on iOS.
Windows and Linux have no row and no search entry. The app renders
nothing; the switch only tells the platform whether it may spatialize.
- media3: a new `setSpatialAudio` call maps to the audio attributes'
spatialization behavior (auto or never). It applies live: the sink
reopens its AudioTrack and drops its buffer, so native seeks to the
current position to decode that audio again instead of skipping it.
- Old Android engine: the fork takes `setSpatialAudio` on its player
channel (no platform interface change) and sets the behavior on API
32+ as each source loads, so a change applies from the next song. The
subtitle says so while the new engine is off.
- iOS and macOS: the Darwin fork sets allowedAudioSpatializationFormats
(iOS 14, macOS 11) to mono, stereo and multichannel or to none, on the
current item and every new one.
The subtitle ends with a live status line. Android reads the
Spatializer (available, enabled, head tracker, and canBeSpatialized for
stereo and 5.1) over a new event channel that re-reads on spatializer,
head tracker and device changes and on resume. iOS reports whether the
output port has spatial audio enabled, on route and spatial capability
changes. The line names the direct USB and AAudio paths and macOS
exclusive output, which never reach the system's spatial audio.
Hiding `headphoneResume` on Android TV turned the old Play when
headphones connect switch off for TV users who had it on. TVs pair
Bluetooth or USB headphones as phones do, so the choice is now shown,
found by settings search and applied on Android TV in all three modes,
and stays hidden only on desktop. The automation group drops its TV
divider special case.
Tests: TV now behaves like a phone (Reconnect resumes a route-loss
pause and leaves a user pause paused, Always resumes after a user
pause, Off stays paused), the TV settings page shows a migrated Always
and saves a new choice, and desktop hides the row and its search entry.
Play when headphones connect and Resume when headphones reconnect become
one setting, `headphoneResume`, with three choices: Off, Reconnect
(resume a pause caused by headphones or Bluetooth going away, within 30
minutes) and Always (the old switch: every connection resumes, a user
pause included, and a disconnect pauses). The row keeps the old title,
describes the current choice under it and draws the choice with the
DESIGN.md component for 2 to 4 short options: `SettingsSegmentedChoice`
(connected M3 Expressive button group) in Material and
`MornyeSegmentedControl` in Mornye. "Reconnect" is short so the three
segments fit one row on a 360 wide phone in both styles and languages.
Migration: a saved `headphoneResume` wins; otherwise
`playOnHeadphonesConnected: true` reads as Always, then
`resumeOnOutputReconnect: true` as Reconnect, else Off. An unknown value
falls back the same way. `toJson` still writes
`playOnHeadphonesConnected` (true only for Always), so a downgrade or a
backup opened by an older build keeps the broad behaviour, and backups
carry the new key through the full settings map.
The choice is offered and applied on Android and iOS phones and tablets
only: desktop and Android TV hide it (search too) and the player treats
it as Off there. The old switch's strings stay for the title and the
Always description; the two strings only the separate switch used are
removed.
A Resume when headphones reconnect switch in the Automatic playback
group of Playback settings, off by default, on Android and iOS phones
and tablets (hidden on desktop and Android TV, also from search).
When headphones or a Bluetooth output go away while music plays, the
existing becoming-noisy pause now also records when it happened. If a
headphone-type output (wired, USB, Bluetooth A2DP or LE, hearing aid)
connects again within 30 minutes, that pause resumes once. Any other
transport change clears the record: Pause, Play, a skip or new song,
Stop, an audio interruption, a setting change or Cast. A song that was
already paused is never resumed, and the record lives in memory only,
so nothing resumes after the app was killed. Mute and audio focus still
block the resume, as for the other automations.
It reuses the audio_session device inventory that Play when headphones
connect already reads, so no permission is added. That broader switch
resumes on every connection, a user pause included; while it is on, the
new switch is disabled and its subtitle says it is covered. With both
on, the disconnect pause of the broader switch keeps the route-loss
record, so they do not conflict.
The window check is the pure `resumesNoisyPause`; the clock is
injectable for tests.
Lyrics in other alphabets now show how they are sung without an AI key
or a network: Korean (Revised Romanization with liaison,
nasalization, lateralization, aspiration and palatalization), Cyrillic
with one standard per language (Russian, Ukrainian, Belarusian,
Bulgarian, Serbian, Macedonian, Kyrgyz, picked from the letters of the
song), Hindi and Punjabi in the plain lyrics spelling with dropped
inherent vowels, Chinese Hanyu Pinyin with phrase readings for
polyphones, and Japanese kana by Hepburn.
Japanese lines with kanji are not romanized offline: a reading
dictionary does not fit the size budget. Those lines, and scripts the
device cannot romanize (Thai, Arabic and others), are what an AI
translation is asked to romanize when it is set up to; otherwise they
show no romanization. A translation no longer asks the AI to romanize
what the device can.
Pinyin comes from a 259 KB gzipped asset built by
scripts/build_pinyin_data.dart from Unihan (Unicode License v3) and
phrase-pinyin-data (MIT); both notices are in the app's licenses. It
loads on a background isolate the first time Chinese lyrics play.
Word-timed lines keep their timing: the line romanizes as a whole, so
sounds that run across words read right, and each word takes its own
part. The romanization is shown, never saved with the song.
Lyrics settings get Romanize lyrics (it starts as the AI romanization
switch was, so whoever turned that off is not shown romanization) and
Romanization as main line, which shows the romanized text as the line
with the original under it; a word-timed line whose romanization has no
timing keeps its original as the main line.
A lock toggle in the queue header of both styles, also in the Queue
section of Playback settings (where search finds it), saved as the
`queueLocked` setting. While it is on, the queue UIs offer no drag
handles (Material's long-press drag included) and no swipe to remove,
and a reorder that still arrives is ignored. Tapping a song still plays
it, and adding songs from elsewhere (Add to queue, Play next, Autoplay,
a paired device) still works. Neither queue UI has a Clear action, so
there was none to block.
Material: an M3 Expressive toggle icon button (`ExpressiveIconButton`,
selected state) before the Autoplay, Repeat and Shuffle toggles of the
Up next header, in the phone sheet and the desktop inspector. Mornye: a
44 pt icon toggle at the end of the Continue Playing title row, filled
while locked like the queue's mode buttons, on phones and desktop.
The lock covers this device's queue UI only; edits a paired phone sends
to the computer's queue are not blocked by the computer's lock.
A No duplicates in queue switch in a new Queue section of Playback
settings, off by default. While it is on, Add to queue, Play next and
adding many songs move an entry already coming up instead of queueing a
second copy, and a batch adds each song once, in its order. The song
playing and the songs before it are never touched, so they can be
queued again.
Identity is where a song plays from (`queueIdentityKey`), not its id or
tags: one file has different ids in the Library, the download history
and a plain path, while a FLAC and an MP3 copy share their tags and are
both meant to be queued. A `file://` URI counts as its path, a SAF
document is matched by provider and document id so a folder-tree URI of
it matches too, and `network://` sources (NAS, Subsonic, a paired
device) and CUE tracks name one song each. Stream URLs compare as is:
one with a fresh token never matches, which keeps a copy rather than
merging two songs.
Every path that adds to the queue goes through `enqueue` and
`enqueueAll`, so Link follows the playing device's own setting: songs a
phone queues on the computer, and a computer queueing a phone's songs
there. Autoplay already leaves out songs coming up and is unchanged.
The moved entry is removed without marking it dismissed for Autoplay,
and the shuffle order and play history follow the removal.
On phones and tablets a sideways swipe on a library song row runs the
same Play next and Add to queue actions the row's menus offer: toward
the end of the row plays next, toward its start queues last, swapped in
right-to-left layouts. The row follows the finger, ticks at the commit
point, runs the action on release and springs back with a snackbar.
The drag must be at least twice as wide as tall, touches at the screen
edges stay with the system back gestures, and rows inside a draggable
pager or carousel keep the page swipe. Selection mode, desktop and
Android TV have no swipe. Screen readers get both actions as custom
actions on the row. A Library setting, on by default, turns it off.