Sound.loadOnce

Load a soundfile and stores the sound object in a static field. Then returns the sound object. If you try to load the same file on more time, you get the same sound object as before.

  1. Sound loadOnce(BaseSoundFile soundfile)
    class Sound
    final static
    loadOnce
  2. Sound loadOnce(string filename)

Meta