foone / 3DMMForever

A modernized version of the Microsoft 3D Movie Maker release
MIT License
537 stars 24 forks source link

[feature] disable studio sounds #52

Open willbr opened 1 year ago

willbr commented 1 year ago

PlayUISound is used to play tool sound effects e.g. while rotating an actor. https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/studio/studio.cpp#L2264-L2267

willbr commented 1 year ago

Tooltip sounds are triggered via scripts: https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/shared/sharhelp.cht#L572-L583

https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/kauai/src/screxeg.cpp#L835-L853

willbr commented 1 year ago

ADOPT_WAVE is used to link sounds to mouse click events for toolbar buttons

Clicking the Scene cover https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/studio/studio.cht#L481

Clicking secondary tools https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/studio/sectools.cht#L385

mdtauk commented 1 year ago

Can these be made into a user preference at some point in the future. We are a long way off from the modern version with new renderer, higher resolutions, etc - but there is a settings dialog of a sort, the options could go there... image

willbr commented 1 year ago

Sure.

As an example, Better Speed is saved in the registry.

https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/studio/utest.cpp#L1997-L2016

willbr commented 1 year ago

It also saves a small blob of binary data as UserData

This includes a flag kflgMcZeeAudio for disabling McZee tooltips.

https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/inc/stdiodef.h#L885-L911

https://github.com/foone/3DMMForever/blob/79b301091175459dd39ec53bbb8a711248e969c6/src/shared/sharhelp.cht#L572-L583