Наследование: ISoundFormat
Пример #1
0
        bool ISoundLoader.TryParseSound(Stream stream, out ISoundFormat sound)
        {
            try
            {
                if (IsWave(stream))
                {
                    sound = new WavFormat(stream);
                    return true;
                }
            }
            catch
            {
                // Not a (supported) WAV
            }

            sound = null;
            return false;
        }