import '../../globals.js';
import SoundClip from '../../tambo/js/sound-generators/SoundClip.js';
import screenSelection_mp3 from '../sounds/screenSelection_mp3.js';
import joist from './joist.js';
class ScreenSelectionSoundGenerator extends SoundClip {
    constructor(screenProperty, homeScreen, options) {
        super(screenSelection_mp3, options);
        // play sounds when the user navigates between screens and to/from the home screen
        screenProperty.lazyLink(currentScreen => {
            if (currentScreen !== homeScreen) {
                this.play();
            }
        });
    }
}
joist.register('ScreenSelectionSoundGenerator', ScreenSelectionSoundGenerator);
export default ScreenSelectionSoundGenerator;
//# sourceMappingURL=ScreenSelectionSoundGenerator.js.map