Code: Select all
sirenVolume = 100
Spring.PlaySoundFile("LuaUI/Sounds/enemyNukeLaunch.ogg",sirenVolume)
Moderator: Moderators
Code: Select all
sirenVolume = 100
Spring.PlaySoundFile("LuaUI/Sounds/enemyNukeLaunch.ogg",sirenVolume)
again Einstein was rightLEDZ wrote:All sounds are affected equally it would seem and usually when there are other sounds playing (from fighting going on).
So what would Einstein suggest can be done about this problem?again Einstein was right
Einstein wrote:Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.
I'll reply in kind.jK wrote:Einstein wrote:Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.
PS: sound channels are limited in contrast to stupidity.
PPS: in Spring sound items have a priority defined in sounds.lua
Can you increase X by giving explaining how sounds played by widgets can override sound priorities so that we can all increase Y; otherwise you might as well maximise Z.Einstein wrote:"If A is a success in life, then A equals X plus Y plus Z. Work is X; Y is play; and Z is keeping your mouth shut."
Did not test but seems Spring.LoadSoundDef http://springrts.com/wiki/Lua_UnsyncedCtrl can create new sounddefs "on the fly" with new priority.how sounds played by widgets can override sound priorities
JK was joking, don't take it seriouslyLEDZ wrote:Can you increase X by giving explaining how sounds played by widgets can override sound priorities so that we can all increase Y; otherwise you might as well maximise Z.
Jools wrote:Is there any way to preload soundfiles if you play them using PlaySoundFile? What if you have about 300 files? Are they all loaded when running this call?
jK wrote:PPS: in Spring sound items have a priority defined in sounds.lua