m_mediaPlayer = new QMediaPlayer(this);
m_audioOutput = new QAudioOutput(this);
m_mediaPlayer->setAudioOutput(m_audioOutput);
m_mediaPlayer->setSource(QUrl("qrc:/Game/Resources/sound/bgm1.mp3"));
m_audioOutput->setVolume(100);
m_mediaPlayer->play();
//没有声音
频道首页