I have a mp3 player in Delphi. When the player is running and I change the audio output device, say from line out (speakers) to bluetooth, the player still "sends" the sound to the line out device. When my bluetooth headset is connected and I start the player, everything is fine and the player "sends" the sound to the bluetooth device. But when I disconnect the bluetooth speakers/headset, the player doesn't play any song, it just skips every song as they won't be "playable".
Is there a way to get this managed? Every other player, VLC, Winamp, Windows Media Player, are able to handle the change of the output device "on the fly".
For the player I use Delphi XE, but I think this isn't relevant to the problem as itself. At the time I use BASS library 2.4.11
Thanks for your answers in advance! MPage
Yes, there is the way.
AIMP player is exactly written in Delphi using BASS library.
If you stop playing, change audio output in preferences and start playing - it sends music to the newly selected sound device.