rserota / wad

Web Audio DAW. Use the Web Audio API for dynamic sound synthesis. It's like jQuery for your ears.
MIT License
1.89k stars 160 forks source link

Playing a PolyWad at a certain time #98

Closed iogrt closed 5 years ago

iogrt commented 5 years ago

Imagine I have a 10 second audio PolyWad and would like to play it 5 seconds in. How would I do this? Do I have to change offset for every wad inside it?

rserota commented 5 years ago

That's one way to do it. Another option is to add offset as a parameter when calling the polywad's play method.

myPolyWad.play({offset: 5})