You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think is a problem with the documentation: you need to pass the file url inside a buffers object:
// this worksconstsampler=newSampler(audioContext,{buffers: {duh: "duh-duh-ah.mp3"}});// this doesn't workconstsampler=newSampler(audioContext,{duh: "duh-duh-ah.mp3"});
This example doesn't seem right:
const sampler = new Sampler(audioContext, { duh: "duh-duh-ah.mp3" }); sampler.start({ note: "duh" loop: true loopStart: 1.0, loopEnd: 9.0, });
It's throwing this error: Object literal may only specify known properties, and 'duh' does not exist in type 'Partial'.ts(2353)
I've an MP3 file I would like to know how I can load it.
The text was updated successfully, but these errors were encountered: