fix(player): label only 16x as silent in the speed picker

The "no audio" note was attached to everything past 4x on a guess about
where the browsers stop pitch-correcting. Playing the ladder through
confirms audio survives 6x and 8x; 16x, the rate Chrome and Firefox clamp
to, is the only silent one. Move the threshold up so the two fast rates
that do carry sound stop advertising otherwise.
This commit is contained in:
2026-08-20 11:36:39 +03:00
parent 689f5bc81b
commit b040fe0dc9
2 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -235,8 +235,9 @@ describe('getSpeedOptionsForProvider', () => {
});
it('marks the rates the browser plays without audio', () => {
expect(SILENT_ABOVE_SPEED).toBe(4);
expect(NATIVE_SPEED_OPTIONS.filter((speed) => speed > SILENT_ABOVE_SPEED)).toEqual([6, 8, 16]);
// Measured in the browser: 6x and 8x still carry audio, 16x is the only silent rate.
expect(SILENT_ABOVE_SPEED).toBe(8);
expect(NATIVE_SPEED_OPTIONS.filter((speed) => speed > SILENT_ABOVE_SPEED)).toEqual([16]);
expect(YOUTUBE_SPEED_OPTIONS.every((speed) => speed <= SILENT_ABOVE_SPEED)).toBe(true);
});