waterbearlang / waterbear

Visual block syntax for programming languages
http://waterbearlang.com/
357 stars 88 forks source link

Audio samples can be stopped before they finish (with the stop button or the pause block) #1274

Closed alexjsmac closed 8 years ago

alexjsmac commented 8 years ago

Or if they are in a loop.

I really don't think there is anything that can be called on a sound effect to stop or pause it before it finishes.

I modified the pause button too so it doesn't cause an exception if someone tries to use it on a sound effect.

Fixes #1184

dethe commented 8 years ago

All the sound effects are based on an underlying oscillator. We should be able to either stop the oscillator or disconnect the outputs from it. Probably not worth spending too much time on right now, though, I'd rather you were working on the new audio library.

dethe commented 8 years ago

Looks good. :shipit: