Audio pre-amp matrix switch

I’m looking to create an audio matrix switch (pre-amp) since to purchase one is pretty expensive and I only need very simple functionality out of it. I’m posting to see if anyone has particular recommendations of Sparkfun parts that may be more appropriate than just plain nested relays. I’m open to other ideas as well. This project will need to integrate into a home control system, probably via IP, but MAYBE RS232, but that’s really out of scope of this post- I can figure that part out.

Here are the details and explanation of this portion of the project.

There are 2 line level stereo audio inputs (although I may go to 3 or 4 inputs depending on parts, complexity and price).

There are at least 4 line level stereo audio outputs. Each stereo set is just two RCA connectors.

The device will pass input signals through the outputs as the user desires which could be:

No signal is passed through ANY outputs.

Signal A (first stereo input) is passed through any one or more outputs simultaneously.

Signal B is passed through any one or more outputs simultaneously.

A combination of the last 2.

E.g., Outputs 1 and 2 are passing Signal A | Outputs 3, 5, 6 are passing Signal B | Outputs 4, 7, 8 are passing nothing

This is fairly simple via a bunch of relays, but I’m thinking there’s an easier way with fewer parts and smaller footprint, just not sure how complicated that would get.

Thanks for any thoughts on this.

I think what you want is an audio mixer. Relays are probably not the way to go for low level analog audio signals.