If I accidentally make sounds during my prayers, does that invalidate them? This occurs frequently, and I often find myself repeating my prayers multiple times because of it.
Passing gas during Salah invalidates Salah because Wudhu is invalid by passing gas. If you are sure that you passed gas whether intentionally or un intentially, your Wudhu is invalid and your Salah is invalid and you need to perform Wudhu and Salah again.
Wassalam.