An inflammation of the myocardium, the middle layer of the heart wall, usually caused by a viral infection. Signs and symptoms of myocarditis include chest pain, heart failure, and abnormal heart rhythms.