Add a pci sound card. Low priced. Good performance... range from $18 to $200, but the $30 ones are quite good.
Reinstall the drivers, after removing or disabling the ones in the Device manager.
Realtek is not known for causing troubles, but if overdriven by high volumes, what you describe often occurs.
Speaker failures can also be involved.