Inheritance: ISoundFormat
コード例 #1
0
ファイル: AudLoader.cs プロジェクト: reaperrr/OpenRA
        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);
        }
コード例 #2
0
ファイル: AudLoader.cs プロジェクト: pchote/OpenRA
        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;
        }