private void OnStopRequested(NoiseDetectorEvent evnt) { if (evnt == NoiseDetectorEvent.StopRequested) { _audio.StopListen(); } }
private void OnNoiseDetectorChangeEvent(NoiseDetectorEvent evnt) { switch (evnt) { case NoiseDetectorEvent.StartListening: if (IsChangePPWhenListeningModeChanged) { PowerPlan.SetActive(DesiredPowerPlanWhenListening); } break; case NoiseDetectorEvent.StopListening: if (IsChangePPWhenListeningModeChanged) { PowerPlan.SetActive(DesiredPowerPlanWhenNotListening); } break; } }