What is the purpose of the capacitor and resistor in this op-amp circuit?
It is a Zobel network also known as Boucherot cell, meant to stablize the amplifier when no load (speaker) is attached. It compensates the increasing speaker impedance at higher frequencies and prevents high frequency oscillation.