Sound.loadOnce

Load a soundfile from his path 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)
  2. Sound loadOnce(string filename)
    class Sound
    final static
    loadOnce
    (
    string filename
    )

Meta