AVPlayer list of available audio outputs on macOS

This should be easy but I can't find any documentation explaining it.


I want to load a list of available audio output devices on macOS, then set the AVplayer to send audio to one of those ouputs.


How do I do that?