mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Avoid audio encryption on Steam Link for performance reasons
This commit is contained in:
@@ -427,7 +427,12 @@ bool Session::initialize()
|
|||||||
m_StreamConfig.fps = m_Preferences->fps;
|
m_StreamConfig.fps = m_Preferences->fps;
|
||||||
m_StreamConfig.bitrate = m_Preferences->bitrateKbps;
|
m_StreamConfig.bitrate = m_Preferences->bitrateKbps;
|
||||||
m_StreamConfig.hevcBitratePercentageMultiplier = 75;
|
m_StreamConfig.hevcBitratePercentageMultiplier = 75;
|
||||||
m_StreamConfig.encryptionFlags = ENCFLG_ALL;
|
|
||||||
|
#ifndef STEAM_LINK
|
||||||
|
// Enable audio encryption as long as we're not on Steam Link.
|
||||||
|
// That hardware can hardly handle Opus decoding at all.
|
||||||
|
m_StreamConfig.encryptionFlags = ENCFLG_AUDIO;
|
||||||
|
#endif
|
||||||
|
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"Video bitrate: %d kbps",
|
"Video bitrate: %d kbps",
|
||||||
|
|||||||
Reference in New Issue
Block a user