I want to extend the AudioBufferSourceNode
class so that i can support playback of the sound multiple times. I want to override both the constructor and the start()
/stop()
methods, but i don't know how to do that in the "correct" way since they have optional arguments and not all the defaults are provided on MDN (1, 2). Coming from OOP languages i expected to find a more precise method signature so that i can build upon that, but i could only find native code.
So what's the most correct way to do that?