You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue phetsims/john-travoltage#309 describes a problem where sound could keep playing when the sim is paused in the LoL framework. To resolve that issue, I added code that essentially disabled sound generation when the sim is not active. A more complete, but also more complex, solution would be to pause all sound generators that support it when the sim becomes inactive, and then resume then if and when the sim becomes active again. The pause functionality is not yet implemented for sound clips (see #40), but once it is, we should consider using it for a more complete pause behavior.
The text was updated successfully, but these errors were encountered:
LOL support is implemented in LegendsOfLearningSupport:
// Respond to pause/resume commands from the Legends of Learning platformwindow.addEventListener('message',function(message){if(message.data.messageName==='pause'){sim.stepOneFrame();sim.activeProperty.value=false;}elseif(message.data.messageName==='resume'){sim.activeProperty.value=true;}});}
Issue phetsims/john-travoltage#309 describes a problem where sound could keep playing when the sim is paused in the LoL framework. To resolve that issue, I added code that essentially disabled sound generation when the sim is not active. A more complete, but also more complex, solution would be to pause all sound generators that support it when the sim becomes inactive, and then resume then if and when the sim becomes active again. The pause functionality is not yet implemented for sound clips (see #40), but once it is, we should consider using it for a more complete pause behavior.
The text was updated successfully, but these errors were encountered: