On Jan 21, 2011, at 5:33 PM, Alain Plantec wrote: > ----------------- > quickStartSoundSettingOn: aBuilder > <systemsettings> > (aBuilder setting: #soundQuickStart) > parent: #soundEnabled; > label: 'Play sounds immediately if possible' translated; > target: SoundPlayer > -------------- > > should do it if you have > SoundPlayer class>>soundQuickStart > SoundPlayer class>>soundQuickStart: aBoolean > > btw: > why this setting ? > If sound is enabled, why would I set this setting to false ? > I guess one always want the sound to start as quick as possible.
:) No on some platform is was simply crashing the vm. > > Cheers > Alain > > > > > Le 21/01/2011 16:06, Henrik Sperre Johansen a écrit : >> Sorry I haven't really had time to learn the settings framework yet, >> does anyone know how to do this? >> >> Updating the Sound package, I'd like to add a few to the existing >> category Appearance -> sound (strange place for it, btw...) in a package >> one can load from the repository. >> >> I tried code like: >> >> quickStartSoundSettingOn: aBuilder >> <systemsettings> >> (aBuilder group: #appearance) with: [ >> (aBuilder setting: #soundEnabled) with: [ >> (aBuilder setting: #soundQuickStart) >> label: 'Play sounds immediately if possible'; >> target: SoundPlayer; >> targetSelector: #soundQuickStart]] >> >> but that's apparently far off the mark... >> >> Cheers, >> Henry >> >> > >