QAudioOutput::setVolume设置声音大小之后,声音会出现噪音
解决办法是setSampleType由UnSignedInt改为SignedInt
QAudioFormat fmt;
fmt.setSampleType(QAudioFormat::SignedInt);
参考自:
https://stackoverflow.com/questions/32821706/noise-after-changing-volume-in-qaudiooutput
QAudioOutput::setVolume设置声音大小之后,声音会出现噪音
解决办法是setSampleType由UnSignedInt改为SignedInt
QAudioFormat fmt;
fmt.setSampleType(QAudioFormat::SignedInt);
参考自:
https://stackoverflow.com/questions/32821706/noise-after-changing-volume-in-qaudiooutput