Use artsplay (kde) instead of mplayer or a similar sound play program for gnome.
e. g.:
Code: Select all
AvalonPath = "/home/eraldo/reference/Avalon/"
SoundPath = AvalonPath .. "sounds/"
function playSound( sound )
os.execute( "artsplay " .. SoundPath .. sound )
end
This command will return immediately and there will be no lock up and you can play sounds simultaneously.
Mplayer, xine etc. would need to be started as a new process e.g.
mplayer mysound.wav &
xine mysound.wav &
As these programs are usually not intended to be used this way you'd probably need to set some special options to hide the gui etc.
I'll add the dependencies to play sounds on Linux with the built-in Mudlet functionality in the next couple of weeks. It's easier on windows and MAC. On Linux you need some special packages but the above solution is simple and a good workaround.