QT5 QSound does not play all wave files

前端 未结 2 1319
暖寄归人
暖寄归人 2021-01-21 09:17

I am in the midst of migrating our app based on QT4.X to QT5. Phonon support has been removed in QT5, so I have changed my code that plays a wave file to use QSound.

Cha

2条回答
  •  礼貌的吻别
    2021-01-21 09:35

    Also note that Qt has several different sound playback APIs. For small file playback with lower latency I found this to be much faster: http://doc.qt.io/qt-5/qsoundeffect.html#details

    Also: http://doc.qt.io/qt-5/qmediaplayer.html

提交回复
热议问题