Install SilentPatch → Launch game. That’s all you need to play GTA San Andreas without a sound card.

This is a complete guide to playing on a PC without a sound card (or with disabled/broken onboard audio).