Esempio n. 1
0
        public static IrrKlang.ISound PlaySound(Sound.Name name, bool loop = false)
        {
            Sound pSound = Find(name);

            Debug.Assert(pSound != null);

            SoundManager pMan = SoundManager.PrivGetInstance();

            Debug.Assert(pMan != null);
            Debug.Assert(pMan.poSndEngine != null);

            IrrKlang.ISound hardwareSound = pMan.poSndEngine.Play2D(pSound.GetSound(), loop, false, false);

            return(hardwareSound);
        }