Unsolved How can we repeatedly playing an audio file with QAudioOutput?
-
Can we repeatedly playing an audio file with QAudioOutput? I can play the file one time but cannot repeat. Are there somethings like aboutToFinish signal that I can use to seek the buffer to 0? So that QAudioOutput will play the file repeatedly.
Thank you very much!
-
@DoHuuVi said:
Are there somethings like aboutToFinish signal that I can use to seek the buffer to 0?
When you at least would have looked at the docs once for the available signals you would have noticed that one of the 2 available signals is the stateChanged() signal...
-
I want to reloop before the playing is stoped.
-
Hi,
QAudioOutput is rather "low level". QMediaPlayer + QMediaPlayList might be more adapted to your use case.
Hope it help
-
I want to play the file to a specific device/output so I think QAudioOutput is what we need. How can we specify the device/output with QMediaPlayer?
-
You can try to query the QAudioOuputSelectorControl from QMediaPlayer.