Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit ed43d92

Browse files
committed
Match designs more closely with +1 sample
1 parent a94c1a9 commit ed43d92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/voice/Playback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export enum PlaybackState {
2929
Playing = "playing", // active progress through timeline
3030
}
3131

32-
export const PLAYBACK_WAVEFORM_SAMPLES = 38;
32+
export const PLAYBACK_WAVEFORM_SAMPLES = 39;
3333
const DEFAULT_WAVEFORM = arraySeed(0, PLAYBACK_WAVEFORM_SAMPLES);
3434

3535
export class Playback extends EventEmitter implements IDestroyable {

src/voice/VoiceRecording.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const BITRATE = 24000; // 24kbps is pretty high quality for our use case in opus
3333
const TARGET_MAX_LENGTH = 120; // 2 minutes in seconds. Somewhat arbitrary, though longer == larger files.
3434
const TARGET_WARN_TIME_LEFT = 10; // 10 seconds, also somewhat arbitrary.
3535

36-
export const RECORDING_PLAYBACK_SAMPLES = 43;
36+
export const RECORDING_PLAYBACK_SAMPLES = 44;
3737

3838
export interface IRecordingUpdate {
3939
waveform: number[]; // floating points between 0 (low) and 1 (high).

0 commit comments

Comments
 (0)