I have a kivy-based game that is supposed to play some sound FX. Sound objects are loaded like this:
self.boombox = {'moved': SoundLoader.load('dshoof.wav'),
'attacked': SoundLoader.load('dspunch.wav')}
And played whenever appropriate like this:
self.parent.boombox['attacked'].play()
It mostly works, but the first time any particular sound is played, it lags for about half a second. I guess that's the time it takes to load WAV from disk to memory. Is there any way to make sure sounds are loaded during initialization, not in a lazy manner it seems to be? This behaviour is observed on Linux-based PC, non Android, if that's of any relevance.