Remove brown/yellow resin around electronic components
Clue : this is a subwoofer. That goop is there to stop things rattling. (The "rubber" tubes look like heatshrink sleeving; easy to buy and fit as part of your repair). 

Only remove what you have to, to replace a broken component. I'd probably use a woodworking chisel in a similar situation. 

And you'll want to replace that goop with something similar - maybe hot-melt adhesive would work,  or epoxy if that doesn't. to stop your repair rattling.