Skip to content

Commit dd2c808

Browse files
committed
hotfix: reduce sounds-tab click to play latency
1 parent 389a63a commit dd2c808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/repl/components/panel/SoundsTab.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function SoundsTab() {
126126
try {
127127
// Pre-load the sample by calling onTrigger with a future time
128128
// This triggers the loading but schedules playback for later
129-
const time = ctx.currentTime + 0.5; // Give 500ms for loading
129+
const time = ctx.currentTime + 0.05;
130130
const ref = await onTrigger(time, params, onended);
131131
trigRef.current = ref;
132132
if (ref?.node) {

0 commit comments

Comments
 (0)