Swap left & right

Is there any possibility of an option to swap left and right audio channels?

The reason for this is that I have a Sonos beam and it’s mounted to the ceiling which means left and right are swapped.

I’m currently using a hifiberry which I’ve patched to swap left and right, but it would be far cleaner if the projector could do this instead.