Acid reflux

What medicines are your infants on for acid reflux? My baby was on Pepcid for 3 weeks and she’s still uncomfortable and spitting up ( more like throwing up ) ! They are thinking of changing her medicine ? How long did the medicine to work?