Inheritance: ISoundFormat
Exemple #1
0
        bool ISoundLoader.TryParseSound(Stream stream, out ISoundFormat sound)
        {
            try
            {
                if (IsAud(stream))
                {
                    sound = new AudFormat(stream);
                    return(true);
                }
            }
            catch
            {
                // Not a supported AUD
            }

            sound = null;
            return(false);
        }
Exemple #2
0
        bool ISoundLoader.TryParseSound(Stream stream, out ISoundFormat sound)
        {
            try
            {
                if (IsAud(stream))
                {
                    sound = new AudFormat(stream);
                    return true;
                }
            }
            catch
            {
                // Not a supported AUD
            }

            sound = null;
            return false;
        }