Example #1
0
        public static VSound PlaySource(VSoundSource src, bool loop = false)
        {
            var snd = engine.Play2D(src.Src, loop, false, false);
            var vs  = new VSound();

            vs.Snd = snd;
            return(vs);
        }
Example #2
0
        public static VSoundSource LoadSound(string path)
        {
            if (engine == null)
            {
                engine = new ISoundEngine();
            }

            var src = engine.AddSoundSourceFromFile(path);
            var vs  = new VSoundSource();

            vs.Src = src;
            return(vs);
        }