multiSelectionSoundPlayerFactory¶
Overview¶
The multiSelectionSoundPlayerFactory singleton is used to create a set of sound players that are similar to one another but slightly different, and can thus be used to sonically indicate that a selection is being made from a group of available options. It was originally developed to support radio buttons (and was called radioButtonSoundPlayerFactory), but its usage was expanded to combo boxes, so the name was generalized. It may be appropriate to use in other contexts as well.
By providing a factory for these sound players, we can avoid having to construct unique instances for each case where a sound player is needed, thus conserving memory and minimizing load time.
@author John Blanco (PhET Interactive Simulations)
Source Code¶
See the source for multiSelectionSoundPlayerFactory.ts in the tambo repository.