lichen-community-systems / Flocking

Flocking - Creative audio synthesis for the Web
GNU General Public License v2.0
699 stars 60 forks source link

When used outside of the Playground, the enviroPlayButton UI component only works once #116

Closed colinbdclark closed 9 years ago

colinbdclark commented 9 years ago

The new flock.ui.enviroPlayButton component is intended as a reusable component that Flocking users can embed into their own application UIs. It works quite nicely, but only through one play/pause cycle. After pausing and then pressing play again, no sound is heard.

colinbdclark commented 9 years ago

This is due to the fact that the default behaviour for this type of button is to completely tear down the environment, destroying all of its nodes whenever the button is paused. This is a sensible approach for a context like the Playground, where you want throw away all previous context, but heavy handed for other use cases. This teardown behaviour should be factored into a separate grade used by the Playground (and, eventually, the embeddable code editor module).

colinbdclark commented 9 years ago

Fixed in 8022acc4020c95ae0bedd2450739bebea23e8147