Skip to content

Should categoryName be required when adding a SoundGenerator?  #158

@pixelzoom

Description

@pixelzoom

soundManager supports putting sounds into named "catagories". But when a SoundGenerator is added, specifying a catagory is optional, via option catagoryName. For example:

soundManager.addSoundGenerator( goBackSoundClip, { categoryName: 'user-interface' } );

Because categoryName is optional, this can lead to oversights like phetsims/vegas#98.

Should categoryName be required? Should it default to something that is not null, so that all sounds get put in some "default" category? Is there a reason why every SoundGenerator should NOT be in a category?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions