Is there an 'analog' AND gate?
A single analogue switch might do what you want: -



It's basically a relay in chip form but there are certain things you need to consider: -


The chip needs a supply voltage
When routing the signal through to either NO or NC there will be an equivalent contact resistance of several tens of ohms for some devices. Some devices are sub 1 ohm of course but exhibit "features".
Off isolation isn't as good as a convention electromechanical relay due to capacitance between input and output "contacts". Low on-resistance types are usually worse with respect to off-isolation. This usually doesn't matter too much for audio but at hundreds of kHz this can become a problem.
It's not a good idea to expect you can pass hundreds of mA through it although some are able to work with this sort of current.


One improvement is to use two analogue switches so that when the pass switch is "open circuit", the 2nd switch shorts the output to ground thus mitigating the effects of the off-isolation capacitance.

You can use a JFET too: -



There are some problems with this circuit also - it doesn't quite fully isolate because it relies on the on-resistance of the JFET being low enough to reduce the signal at the output to minimal levels and this might still leave an unacceptably significant level.

Or there is this type of optically controlled switch from Omron: -



They do a version with 1 ohm on resistance and about a pico-farad off-capacitance.

It all boils down to you deciding what performance you want.