These medicines often are used to treat atrial fibrillation (AF). Some of the medicines used to restore a normal heart rhythm are amiodarone, sotalol, flecainide, propafenone, dofetilide, ibutilide, quinidine, procainamide, and disopyramide. These medicines often have side effects.