feat(web): add 0.5x and 0.75x audio playback speeds
Voice notes recorded quickly or in noisy surroundings are easier to follow when slowed down. The speed button still starts at 1x and cycles through 1.5x and 2x before wrapping to the slow rates. Closes #6263
This commit is contained in:
parent
e87dfe637d
commit
b88a71540a
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import { cn } from "@/lib/utils";
|
|||
import { formatFileSize, getFileTypeLabel } from "@/utils/format";
|
||||
import { formatAudioTime, toggleAudioPlayback } from "./attachmentHelpers";
|
||||
|
||||
const AUDIO_PLAYBACK_RATES = [1, 1.5, 2] as const;
|
||||
const AUDIO_PLAYBACK_RATES = [0.5, 0.75, 1, 1.5, 2] as const;
|
||||
const UNKNOWN_DURATION_LABEL = "--:--";
|
||||
|
||||
const getDurationLabel = (duration: number): string => (duration > 0 ? formatAudioTime(duration) : UNKNOWN_DURATION_LABEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue