mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
A Skip silence switch in Playback settings, off by default, shown on Android phones and tablets under the new playback engine. It works only through media3: while that engine is off the switch is disabled and its subtitle says why. Changes apply live through a new `setSkipSilence` call on the media3 channel, sent after `create` and on every change. media3 skips silence in its audio processor chain, which it bypasses for float PCM, and it asks every decoder for float once the sink takes float output. While the setting is on, the renderer therefore asks decoders for 16-bit PCM and refuses to reuse a decoder set up for the other mode, so hi-res sources lose their low bits while it is on (the subtitle says so). A decoder already running keeps its mode: turning it on mid-song starts skipping from the next song, turning it off stops at once. Interplay: - AutoMix: suspended while AutoMix is on. AutoMix times its fade start and beat matching on the clock from analysed file positions, which skipping would outrun. The subtitle says so. - Gapless: `queueNext` stays on the same player, so the trailing and leading silence around the handoff is skipped too; the 30 s lead leaves the queue call far ahead of the end. - Position, duration, synced lyrics: media3 reports media time, which jumps forward over a skipped passage, so lyrics stay in sync and the duration is unchanged. - Scrobbling and listening statistics count listened wall time, so a song with long silences counts slightly less time; the thresholds are far from that.