On a PC w/ Ubuntu 14.04, Qt 5.5.0 & Bluez 4.101-0ubuntu13.1, I'm trying to play audio to BT sink devices over A2DP.
To do so, I'm connecting to those devices using Bluez and then play to it using QAudioOutput
with a device detected using search on QAudioDeviceInfo::availableDevices(QAudio::AudioOutput)
output.
However, the QAudioDeviceInfo::availableDevices(QAudio::AudioOutput)
output does not change after calling it for the second, and requires restart of the application for the list to refresh. Since I can't create QAudioDeviceInfo
(to input to the QAudioOutput
) with my custom parameters of the ALSA hw device, I can't stream audio to new A2DP sink devices.
Has anyone encountered this issue? Is there a solution or a workaround? I'll appreciate the help.