#if QT_VERSION < QT_VERSION_CHECK(6,0,0) _mp.setMedia(QUrl::fromLocalFile(files()->mp3_file(sound_names[n]).c_str())); _mp.setVolume(100); _mp.play(); #else _mp.setAudioOutput(&_audio); _mp.setSource(QUrl::fromLocalFile(files()->mp3_file(sound_names[n]).c_str())); _audio.setVolume(100); _mp.play(); #endif