Remove CPU core count check

Decryption seems fast enough for all reasonable bitrates even on dual-core devices.
This commit is contained in:
Cameron Gutman 2024-01-28 14:37:03 -06:00
parent 303303bf6b
commit 7465835808

View File

@ -422,14 +422,8 @@ void ClSetControllerLED(uint16_t controllerNumber, uint8_t r, uint8_t g, uint8_t
// Since we require iOS 12 or above, we're guaranteed to be running
// on a 64-bit device with ARMv8 crypto instructions, so we don't
// need to check for that here. Instead, we'll just check for more
// than 2 cores, which eliminates the early dual-core CPUs (A7-A9).
if (NSProcessInfo.processInfo.processorCount > 2) {
_streamConfig.encryptionFlags = ENCFLG_ALL;
}
else {
_streamConfig.encryptionFlags = ENCFLG_AUDIO;
}
// need to check for that here.
_streamConfig.encryptionFlags = ENCFLG_ALL;
if ([Utils isActiveNetworkVPN]) {
// Force remote streaming mode when a VPN is connected