[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] No sound on Linux (#489)

tim Rowledge tim at rowledge.org
Thu Apr 23 22:45:36 UTC 2020



> On 2020-04-23, at 2:29 PM, Eliot Miranda <notifications at github.com> wrote:
> 
> 
> You might find you have to add a function to struct Sound, such as isModulePreferred or some such to allow sqUnixMain to query the available sound modules so that they do the determination, not sqUnixMain.

Perhaps even better, move that stuff out of the core vm code entirely and into the platform specific sound plugin code. If you don't load the plugin (because webserver, or otherwise not needing to make noises) you shouldn't even run this code. And clearly in the image, if no noise is made no plugin should be loaded to make noises.

The only bit that should be in the core vm code is to record any preference about the sound set by the command line; the plugin code should query that and do the right thing.


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
User: A harmless drudge.




More information about the Vm-dev mailing list