Heart disease can involve inflammation of different parts of the heart, including the inner lining (endocarditis), muscle (myocarditis), or membrane surrounding it (pericarditis). Endocarditis involves inflammation of the inner lining of the heart. Myocarditis is inflammation of the heart muscle. Pericarditis is inflammation of the membrane surrounding the heart.