From 433e145b028ec0c119ec3fb1a3baff7e22c220f7 Mon Sep 17 00:00:00 2001 From: Jesse Date: Wed, 21 Sep 2022 11:37:16 -0600 Subject: [PATCH] documentation for AudioModel, see https://github.com/phetsims/joist/issues/864 --- js/preferences/PreferencesModel.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/js/preferences/PreferencesModel.ts b/js/preferences/PreferencesModel.ts index 0dd9a4c4..122098dd 100644 --- a/js/preferences/PreferencesModel.ts +++ b/js/preferences/PreferencesModel.ts @@ -118,8 +118,10 @@ type BaseModelType = { tandemName: string; // tandem name of the model, like "audioModel" }; +// Model for controls that appear in the "Simulation" panel of preferences export type SimulationModel = BaseModelType & Required; +// Model for controls that appear in the "Visual" panel of preferences export type VisualModel = BaseModelType & { // Whether "Interactive Highlights" are enabled for the simulation. If enabled, focus highlights will appear around @@ -131,15 +133,24 @@ export type VisualModel = BaseModelType & { colorProfileProperty: Property; } & Required; +// Model for controls that appear in the "Audio" panel of preferences export type AudioModel = BaseModelType & { + + // When false, no audio features are heard. See audioManager.ts for documentation about audio and sub features. + // TODO: To be renamed to audioEnabledProperty, see https://github.com/phetsims/joist/issues/864 simSoundEnabledProperty: Property; soundEnabledProperty: Property; extraSoundEnabledProperty: Property; voicingEnabledProperty: Property; + + // Whether sub-features of Voicing are enabled. See voicingManager and responseCollector for documentation about + // each of these features. voicingMainWindowVoicingEnabledProperty: Property; voicingObjectResponsesEnabledProperty: Property; voicingContextResponsesEnabledProperty: Property; voicingHintResponsesEnabledProperty: Property; + + // Controls for the voice of SpeechSynthesisAnnouncer.ts voicePitchProperty: NumberProperty; voiceRateProperty: NumberProperty; voiceProperty: Property;