Exemple #1
0
        public static IMusic New(AudioTypes audioType, IDisposableResource parent, string filename)
        {
            IMusic api = null;

            #if XNA
            if (audioType == AudioTypes.XNA) api = new XNA.Music(parent, filename);
            #endif

            if (audioType == AudioTypes.Dumby) api = new Dumby.Music(parent, filename);

            if (api == null) Debug.ThrowError("MusicAPI", "Unsuported InputType: " + audioType);
            return api;
        }
Exemple #2
0
        public static IMusic New(AudioTypes audioType, IDisposableResource parent, string filename)
        {
            IMusic api = null;

                        #if XNA
            if (audioType == AudioTypes.XNA)
            {
                api = new XNA.Music(parent, filename);
            }
                        #endif

            if (audioType == AudioTypes.Dumby)
            {
                api = new Dumby.Music(parent, filename);
            }

            if (api == null)
            {
                Debug.ThrowError("MusicAPI", "Unsuported InputType: " + audioType);
            }
            return(api);
        }