VS 2019 C++

I sometimes use the PlaySound function to announce states within process control programs. This works as expected through the laptops own speakers. When I set up a bluetooth audio output the announcements do not play. The bluetooth on this computer works exactly as it should with any output other than one from a C program with the PlaySound function. Any ideas as to what the problem might be? Thanks for any advice you might post.