HTML5 Audio API stop a sound triggered with noteGrainOn -


is there way stop (or forever pause) sound played ..

audiosource.notegrainon(when, starthere, duration_sound);  

..before "duration_sound" variable stops it? via noteoff, how used?

yes. (note should use .start() - noteon() , notegrainon() deprecated.)

just call

audiosource.stop( 0 ); 

to stop immediately, or can schedule stop before sound finished playing calling

audiosource.stop( whentostop ); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -