hotfix: reduce sounds-tab click to play latency

This commit is contained in:
Felix Roos
2025-11-19 21:55:35 +01:00
parent 389a63a850
commit dd2c808cd7
@@ -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) {