Endocarditis is an infection that affects the inner membrane that separates the chambers and valves of the heart (endocardium). Heart infection symptoms can include: