bool CPeripherals::IsMuted(void) { vector<CPeripheral *> peripherals; if (SupportsCEC() && GetPeripheralsWithFeature(peripherals, FEATURE_CEC)) { for (unsigned int iPeripheralPtr = 0; iPeripheralPtr < peripherals.size(); iPeripheralPtr++) { CPeripheralCecAdapter *cecDevice = (CPeripheralCecAdapter *) peripherals.at(iPeripheralPtr); if (cecDevice && cecDevice->IsMuted()) return true; } } return false; }
bool CPeripherals::IsMuted() { std::vector<CPeripheral *> peripherals; if (SupportsCEC() && GetPeripheralsWithFeature(peripherals, FEATURE_CEC)) { for (const auto& peripheral : peripherals) { CPeripheralCecAdapter *cecDevice = reinterpret_cast<CPeripheralCecAdapter*>(peripheral); if (cecDevice && cecDevice->IsMuted()) return true; } } return false; }