Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: sample playback — restore pointer swap, don't kill voices on load

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+5 -1
+5 -1
fedac/native/src/js-bindings.c
··· 1173 1173 JS_FreeValue(ctx, v); 1174 1174 1175 1175 uint64_t id = audio_sample_play(audio, freq, base_freq, volume, pan, loop); 1176 - if (id == 0) return JS_UNDEFINED; 1176 + if (id == 0) { 1177 + ac_log("[sample] play FAILED (sample_len=%d)\n", audio->sample_len); 1178 + return JS_UNDEFINED; 1179 + } 1180 + ac_log("[sample] play OK id=%llu freq=%.1f vol=%.2f\n", (unsigned long long)id, freq, volume); 1177 1181 1178 1182 // Return object with id, update(), isSample 1179 1183 JSValue snd = JS_NewObject(ctx);