A headphone amplifier is what you're looking for. This cheap Behringer accepts two inputs and has 4 output channels that are eight outputs as they're duplicated on the rear panel. Each output is selectable between the two inputs with a push button. Ipad into input A and Laptop into input B

This device has a small footprint and excellent and strong output signals. I currently have one but have had several and they have all performed great.
Behringer MiniAmp AMP800 4-channel Headphone Amplifier


BIAB Ultra Pak+ 2024:RB 2024, Latest builds: Dell Optiplex 7040 Desktop; Windows-10-64 bit, Intel Core i7-6700 3.4GHz CPU and 16 GB Ram Memory.