Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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!
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.
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.