mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Switch to libsoundio on Linux now that PA works reliably after d1fe752028
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ macx {
|
|||||||
}
|
}
|
||||||
|
|
||||||
unix:!macx {
|
unix:!macx {
|
||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig soundio
|
||||||
PKGCONFIG += openssl sdl2 opus
|
PKGCONFIG += openssl sdl2 opus
|
||||||
|
|
||||||
# For libsoundio
|
# For libsoundio
|
||||||
|
|||||||
@@ -341,11 +341,12 @@ void SoundIoAudioRenderer::sioWriteCallback(SoundIoOutStream* stream, int frameC
|
|||||||
|
|
||||||
// Place an upper-bound on audio stream latency to
|
// Place an upper-bound on audio stream latency to
|
||||||
// avoid accumulating packets in queue-based backends
|
// avoid accumulating packets in queue-based backends
|
||||||
// like WASAPI. This bound was set by testing on several
|
// like WASAPI, ALSA, and PulseAudio.
|
||||||
// Windows machines. The highest latency was found on
|
//
|
||||||
// a XPS 9343 running Windows 7 in Steam Big Picture
|
// This bound was set by testing on several Windows machines.
|
||||||
// and the 5.1 audio test clip from Fraunhofer.
|
// The highest latency was found on a XPS 9343 running Windows 7
|
||||||
if (me->m_SoundIo->current_backend == SoundIoBackendWasapi) {
|
// in Steam Big Picture and the 5.1 audio test clip from Fraunhofer.
|
||||||
|
if (me->m_SoundIo->current_backend != SoundIoBackendCoreAudio && me->m_SoundIo->current_backend != SoundIoBackendJack) {
|
||||||
double latency;
|
double latency;
|
||||||
if (soundio_outstream_get_latency(stream, &latency) == SoundIoErrorNone) {
|
if (soundio_outstream_get_latency(stream, &latency) == SoundIoErrorNone) {
|
||||||
if (latency > 0.050) {
|
if (latency > 0.050) {
|
||||||
|
|||||||
Reference in New Issue
Block a user