Endocardial infection It is inflammation with or without infection that affects the lining of the heart and heart valves.