> Is it possible to redirect sound from an external program directly to UOS? 
Yes.
> For example, with mplayer or mpv?
If you use Linux, you need to set the input device to 
Monitor.

And with uos, use 
uos_AddFromDevIn(PlayerIndex) to catch that signal.
Fre;D.