Skip to content

Commit bc0be82

Browse files
Instrument identification (progress)
1 parent 580f9c0 commit bc0be82

24 files changed

Lines changed: 3 additions & 5 deletions

src/app/exercise/exercise.page/state/exercise-state.service.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ export class ExerciseStateService implements OnDestroy {
213213
await this._notesPlayer.playMultipleParts(cadence);
214214
}
215215
await this._playYouTubeQuestion(this._currentQuestion);
216-
} else if (this._currentQuestion.type === 'notes') {
216+
} else if (this._currentQuestion.type === 'audio') {
217+
await this._playAudioQuestion(this._currentQuestion);
218+
} else {
217219
const partsToPlay: PartToPlay[] = this._getCurrentQuestionPartsToPlay();
218220
if (cadence && this._globalSettings.playCadence) {
219221
partsToPlay.unshift(...cadence);
@@ -222,10 +224,6 @@ export class ExerciseStateService implements OnDestroy {
222224
partsToPlay.push(...this._getAfterCorrectAnswerParts());
223225
}
224226
await this._notesPlayer.playMultipleParts(partsToPlay);
225-
} else if (this._currentQuestion.type === 'audio') {
226-
await this._playAudioQuestion(this._currentQuestion);
227-
} else {
228-
throw new Error(`${this._currentQuestion.type} is not a recognizable question type`);
229227
}
230228
this._currentlyPlayingSegment = null;
231229
}
36.2 KB
Binary file not shown.
36.2 KB
Binary file not shown.
36.2 KB
Binary file not shown.
36.2 KB
Binary file not shown.
36.2 KB
Binary file not shown.
36.2 KB
Binary file not shown.
36.2 KB
Binary file not shown.
36.2 KB
Binary file not shown.
36.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)