public static bool Deserialize(Stream src, out AudioAac dest)
        {
            dest = new AudioAac();
            var length = src.GetAvaliableByteCounts();

            if (length < 4)
            {
                Logger.FATAL("Not enough data");
                return(false);
            }
            using (var reader = new N2HBinaryReader(src))
            {
                dest._aacLength = reader.ReadUInt32();
                if (length < 4 + dest._aacLength)
                {
                    Logger.FATAL("Not enough data");
                    return(false);
                }
                if (!dest.Init(src, (int)dest._aacLength))
                {
                    Logger.FATAL("Unable to init AAC");
                    return(false);
                }
            }
            return(true);
        }
 public static bool Deserialize(Stream src, out AudioAac dest)
 {
     dest = new AudioAac();
     var length = src.GetAvaliableByteCounts();
     if (length < 4)
     {
         Logger.FATAL("Not enough data");
         return false;
     }
     using (var reader = new N2HBinaryReader(src))
     {
         dest._aacLength = reader.ReadUInt32();
         if (length < 4 + dest._aacLength)
         {
             Logger.FATAL("Not enough data");
             return false;
         }
         if (!dest.Init(src, (int) dest._aacLength))
         {
             Logger.FATAL("Unable to init AAC");
             return false;
         }
     }
     return true;
 }