kopia lustrzana https://gitlab.com/eliggett/wfview
Make only MacOS use buffered audio
rodzic
49ac3cb020
commit
caa61ee14d
|
@ -269,13 +269,19 @@ void audioHandler::start()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (setup.isinput) {
|
if (setup.isinput) {
|
||||||
//this->open(QIODevice::WriteOnly | QIODevice::Unbuffered);
|
#ifdef Q_OS_MACX
|
||||||
this->open(QIODevice::WriteOnly);
|
this->open(QIODevice::WriteOnly);
|
||||||
|
#else
|
||||||
|
this->open(QIODevice::WriteOnly | QIODevice::Unbuffered);
|
||||||
|
#endif
|
||||||
audioInput->start(this);
|
audioInput->start(this);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//this->open(QIODevice::ReadOnly | QIODevice::Unbuffered);
|
#ifdef Q_OS_MACX
|
||||||
this->open(QIODevice::ReadOnly);
|
this->open(QIODevice::ReadOnly);
|
||||||
|
#else
|
||||||
|
this->open(QIODevice::ReadOnly | QIODevice::Unbuffered);
|
||||||
|
#endif
|
||||||
audioOutput->start(this);
|
audioOutput->start(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue