From 04fbabc0f238b96f84166b64c7870f57fb522761 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 23 Apr 2021 19:43:37 -0500 Subject: [PATCH] Enable audio encryption --- main.cpp | 6 +++++- moonlight-common-c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 064f31f..e654fd4 100644 --- a/main.cpp +++ b/main.cpp @@ -231,7 +231,11 @@ void MoonlightInstance::HandleStartStream(int32_t callbackId, pp::VarArray args) m_StreamConfig.audioConfiguration = AUDIO_CONFIGURATION_STEREO; m_StreamConfig.streamingRemotely = STREAM_CFG_AUTO; m_StreamConfig.packetSize = 1392; - + + // TODO: If/when video encryption is added, we'll probably want to + // limit that to devices that support AES instructions. + m_StreamConfig.encryptionFlags = ENCFLG_AUDIO; + // Load the rikey and rikeyid into the stream configuration hexStringToBytes(rikey.c_str(), m_StreamConfig.remoteInputAesKey); int rikeyiv = htonl(stoi(rikeyid)); diff --git a/moonlight-common-c b/moonlight-common-c index 221af82..13041e0 160000 --- a/moonlight-common-c +++ b/moonlight-common-c @@ -1 +1 @@ -Subproject commit 221af8295064b24222dee7a42fff179e89ec9a0f +Subproject commit 13041e0323685ff1b2ccade347cb1de850286d23