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
soundManager.getOutputLevelForCategory always returns undefined. It's also missing a @returns annotation.
Here's the current implementation:
/** * get the output level for the specified sound generator category * @param {String} categoryName - name of category to which this invocation applies * @public */getOutputLevelForCategory(categoryName){// Check if initialization has been done. This is not an assertion because the sound manager may not be// initialized if sound is not enabled for the sim.if(!this.initialized){console.warn('an attempt was made to get the output level for a sound category on an uninitialized sound manager, returning 0');return0;}// verify that the specified category existsassert&&assert(this.gainNodesForCategories[categoryName],`no category with name = ${categoryName}`);returnthis.gainNodesForCategories[categoryName].value;}
The text was updated successfully, but these errors were encountered:
Noted while working on phetsims/fourier-making-waves#55.
soundManager.getOutputLevelForCategory always returns
undefined
. It's also missing a@returns
annotation.Here's the current implementation:
The text was updated successfully, but these errors were encountered: