Use a voltmeter or test light. Don't just match color wires.
Use a test light to make sure that white wire is only on with ignition on.
The red wire goes straight to positive on the battery, and the black to a GOOD ground, or to the same ground as the amp, but not AT or on the amp.
Worry about the buzzing sound later...get the PC going first, then read
this.
I got lazy and bought a ground loop isolater at Walmart, the thing removed ALL my noise including alternator whine. It's better to not use an isolater though as it removes sound quality.