From 1c3d072b49b23d454b5a5cb1c5b4005f1caca177 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 23 Apr 2021 19:07:27 -0500 Subject: [PATCH] Add audio stream encryption --- Limelight/Stream/Connection.m | 4 ++++ moonlight-common/moonlight-common-c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Limelight/Stream/Connection.m b/Limelight/Stream/Connection.m index 63d6f59..910b44f 100644 --- a/Limelight/Stream/Connection.m +++ b/Limelight/Stream/Connection.m @@ -427,6 +427,10 @@ void ClConnectionStatusUpdate(int status) _streamConfig.enableHdr = config.enableHdr; _streamConfig.audioConfiguration = config.audioConfiguration; + // TODO: If/when video encryption is added, we'll probably want to + // limit that to devices that support the ARMv8 AES instructions. + _streamConfig.encryptionFlags = ENCFLG_AUDIO; + // Use some of the HEVC encoding efficiency improvements to // reduce bandwidth usage while still gaining some image // quality improvement. diff --git a/moonlight-common/moonlight-common-c b/moonlight-common/moonlight-common-c index 221af82..13041e0 160000 --- a/moonlight-common/moonlight-common-c +++ b/moonlight-common/moonlight-common-c @@ -1 +1 @@ -Subproject commit 221af8295064b24222dee7a42fff179e89ec9a0f +Subproject commit 13041e0323685ff1b2ccade347cb1de850286d23