Skip to content

Commit

Permalink
Fixed bug in song announcement service
Browse files Browse the repository at this point in the history
  • Loading branch information
JudahGabriel committed Dec 27, 2024
1 parent ce82916 commit ed69a20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ namespace BitShuva.Chavah {

play(announcement: NewMusicAnnoucement) {
if (!announcement.announcementPlayed) {
announcement.announcementPlayed = true;
// First play the announcement, "next up is new music..."
const newMusicAnnouncementCount = 6;
announcement.announcementPlayed = true;
const randomNewMusicNumber = randomNumber(1, newMusicAnnouncementCount);
const newMusicUrl = `${this.homeViewModel.soundEffects}/new-music-${randomNewMusicNumber}x.mp3`;
this.audioPlayer.playNewUri(newMusicUrl);
Expand Down

0 comments on commit ed69a20

Please sign in to comment.