mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
hotfix: reduce sounds-tab click to play latency
This commit is contained in:
@@ -126,7 +126,7 @@ export function SoundsTab() {
|
||||
try {
|
||||
// Pre-load the sample by calling onTrigger with a future time
|
||||
// This triggers the loading but schedules playback for later
|
||||
const time = ctx.currentTime + 0.5; // Give 500ms for loading
|
||||
const time = ctx.currentTime + 0.05;
|
||||
const ref = await onTrigger(time, params, onended);
|
||||
trigRef.current = ref;
|
||||
if (ref?.node) {
|
||||
|
||||
Reference in New Issue
Block a user