I am using QSoundEffect
to play loops of some short .wav
files. This class was the solution for me because it allow us to play low latency sounds.
Everything was fine but now I need to select the output device but I haven’t found the way to do this with QSoundEffect
. I know that using QAudioDeviceInfo
I can get a list of the available devices and use one of them in the constructor of a QAudioOutput
object to play a wav file but QAudioOutput
doesn't allow us to make low latency loops.
So the thing is that I need the functionality of selecting the audio output device that QAudioOutput
and QAudioDeviceInfo
but the ability of playing play low latency loops that QSoundEffect
offers.
In other words I have all the pieces of my desired solution but I don’t know how to put them together.