From 3c1f9f7c80e5374f0f46bf6c6dad7aaf5e99990b Mon Sep 17 00:00:00 2001 From: adeveloper-wq Date: Fri, 28 Jun 2024 12:27:54 +0200 Subject: [PATCH] Add some more comments --- lib/ride/services/audio.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ride/services/audio.dart b/lib/ride/services/audio.dart index 693748c70..97c8f9c3e 100644 --- a/lib/ride/services/audio.dart +++ b/lib/ride/services/audio.dart @@ -62,6 +62,7 @@ class Audio { lastRecommendation.clear(); } + /// Check for rerouting. Future _processRideUpdates() async { if (ride?.navigationIsActive != true) return; if (ftts == null) await _initializeTTS(); @@ -74,6 +75,7 @@ class Audio { } } + /// Check if the audio instructions setting has changed. Future _processSettingsUpdates() async { if (initialized && !settings!.audioInstructionsEnabled) { initialized = false; @@ -92,6 +94,7 @@ class Audio { ftts = null; } + /// Process positioning updates to play audio instructions. Future _processPositioningUpdates() async { if (settings?.audioInstructionsEnabled != true) { return; @@ -277,6 +280,7 @@ class Audio { } } + /// Play new prediction audio instruction. void _playNewPredictionStatusInformation() async { ride ??= getIt(); if (ftts == null) return;