alemangui / pizzicato

Library to simplify the way you create and manipulate sounds with the Web Audio API.
https://alemangui.github.io/pizzicato/
MIT License
1.66k stars 130 forks source link

How to make audio autoplay on chrome? #184

Closed hhuimie closed 4 months ago

hhuimie commented 4 months ago
var sound = new Pizzicato.Sound({
    source: 'wave',
    options: { type: 'sawtooth', frequency: 440 }
});
sound.play();

This code doesn't work. I have to click the button on the page to play it. Thank you!