Skip to content

Commit

Permalink
Add some more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adeveloper-wq committed Jun 28, 2024
1 parent a887eb3 commit 3c1f9f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ride/services/audio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class Audio {
lastRecommendation.clear();
}

/// Check for rerouting.
Future<void> _processRideUpdates() async {
if (ride?.navigationIsActive != true) return;
if (ftts == null) await _initializeTTS();
Expand All @@ -74,6 +75,7 @@ class Audio {
}
}

/// Check if the audio instructions setting has changed.
Future<void> _processSettingsUpdates() async {
if (initialized && !settings!.audioInstructionsEnabled) {
initialized = false;
Expand All @@ -92,6 +94,7 @@ class Audio {
ftts = null;
}

/// Process positioning updates to play audio instructions.
Future<void> _processPositioningUpdates() async {
if (settings?.audioInstructionsEnabled != true) {
return;
Expand Down Expand Up @@ -277,6 +280,7 @@ class Audio {
}
}

/// Play new prediction audio instruction.
void _playNewPredictionStatusInformation() async {
ride ??= getIt<Ride>();
if (ftts == null) return;
Expand Down

0 comments on commit 3c1f9f7

Please sign in to comment.