tempfix(editor): gl 3.3 and qsoundeffect not working on linux
This commit is contained in:
parent
801b00ad97
commit
2ed8c83ec3
3 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,8 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QSurfaceFormat format;
|
QSurfaceFormat format;
|
||||||
format.setSamples(4);
|
format.setSamples(4);
|
||||||
format.setVersion(3, 3);
|
// TODO: This is broken for some reason on Linux, Qt refuses to use any version newer than 3.2. Figure out why
|
||||||
|
// format.setVersion(3, 3);
|
||||||
format.setProfile(QSurfaceFormat::CompatibilityProfile); // Valid only in OpenGL 3.2+, see: https://stackoverflow.com/a/70519392/16255372
|
format.setProfile(QSurfaceFormat::CompatibilityProfile); // Valid only in OpenGL 3.2+, see: https://stackoverflow.com/a/70519392/16255372
|
||||||
QSurfaceFormat::setDefaultFormat(format);
|
QSurfaceFormat::setDefaultFormat(format);
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,7 @@ void MainGLWidget::initializeGL() {
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void playSound(QString path) {
|
inline void playSound(QString path) {
|
||||||
|
return; // TODO: Fix pulseaudio bug causing stutters
|
||||||
QSoundEffect *sound = new QSoundEffect;
|
QSoundEffect *sound = new QSoundEffect;
|
||||||
sound->setSource(QUrl::fromLocalFile(path));
|
sound->setSource(QUrl::fromLocalFile(path));
|
||||||
sound->play();
|
sound->play();
|
||||||
|
|
|
@ -59,6 +59,7 @@ void logQtMessage(QtMsgType type, const QMessageLogContext &context, const QStri
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void playSound(QString path) {
|
inline void playSound(QString path) {
|
||||||
|
return; // TODO: Fix pulseaudio bug causing stutters
|
||||||
QSoundEffect *sound = new QSoundEffect;
|
QSoundEffect *sound = new QSoundEffect;
|
||||||
sound->setSource(QUrl::fromLocalFile(path));
|
sound->setSource(QUrl::fromLocalFile(path));
|
||||||
sound->play();
|
sound->play();
|
||||||
|
|
Loading…
Add table
Reference in a new issue