Hello Gary and welcome to uos forum.
> When I connect to a bluetooth speaker the app still plays to my speakers
Hum, I dont have a bluetooth speaker to test.
Maybe you should use the demo /uos/examples/deviceinfos.lpr and see what device is your bluetooth speaker.
And then assign that device (second parameter) to uos_AddIntoDevOut(PlayerIndex1, -1, -1, -1, -1, -1, -1, -1);
Now how to detect if the device was changed, I dont know.
[EDIT] You may use
uos_UpdateDevice(), see here
http://uos-forum.108.s1.nabble.com/Updates-devices-in-uos-GetInfoDevice-tp984.htmlFre;D