Use a Ne10-optimized libopus build for Steam Link

Steam Link is an incredibly CPU-constrained platform, so it needs
all the help it can get to avoid audio underruns.
This commit is contained in:
Cameron Gutman 2024-11-08 21:26:45 -06:00
parent 103f988dbf
commit 98f6a09991
2 changed files with 14 additions and 2 deletions

View file

@ -69,7 +69,12 @@ macx:!disable-prebuilts {
unix:if(!macx|disable-prebuilts) {
CONFIG += link_pkgconfig
PKGCONFIG += openssl sdl2 SDL2_ttf opus
PKGCONFIG += openssl sdl2 SDL2_ttf
# We have our own optimized libopus.a for Steam Link
if(!config_SL|disable-prebuilts) {
PKGCONFIG += opus
}
!disable-ffmpeg {
packagesExist(libavcodec) {
@ -364,6 +369,13 @@ config_EGL {
config_SL {
message(Steam Link build configuration selected)
!disable-prebuilts {
# Link against our NEON-optimized libopus build
LIBS += -L$$PWD/../libs/steamlink/lib
INCLUDEPATH += $$PWD/../libs/steamlink/include
LIBS += -lopus -larmasm -lNE10
}
DEFINES += EMBEDDED_BUILD STEAM_LINK HAVE_SLVIDEO HAVE_SLAUDIO
LIBS += -lSLVideo -lSLAudio

2
libs

@ -1 +1 @@
Subproject commit a8007d1ef9c5b2a4e5831812b501152387daf8b9
Subproject commit aba5ddffd0019c0e26315614f01de84325208562