Avoid audio encryption on Steam Link for performance reasons

This commit is contained in:
Cameron Gutman 2021-04-23 19:49:03 -05:00
commit e62a268aac

View file

@ -427,7 +427,12 @@ bool Session::initialize()
m_StreamConfig.fps = m_Preferences->fps;
m_StreamConfig.bitrate = m_Preferences->bitrateKbps;
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,
"Video bitrate: %d kbps",