Skip to content

Commit

Permalink
Merge pull request #30 from Comon-tech/LyubomirT-patch-1
Browse files Browse the repository at this point in the history
Point the audio players to the proper directory
  • Loading branch information
C-o-m-o-n authored Dec 15, 2023
2 parents 926561a + aea29f3 commit 5539bac
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions resources/js/AudioPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ class BackgroundMusicPlayer {

// Create an instance of the AudioPlayer class // Export the instance for use in the mein module
export const audioPlayer = new AudioPlayer(
'audioTracks/success-sound.mp3',
'audioTracks/wrong.mp3',
'audioTracks/click.mp3',
'audioTracks/tick_time_sound.mp3',
'audioTracks/tick_time_sound.mp3'
'resources/audio/success-sound.mp3',
'resources/audio/wrong.mp3',
'resources/audio/click.mp3',
'resources/audio/tick_time_sound.mp3',
'resources/audio/tick_time_sound.mp3'
);

// Usage
export const backgroundMusicPlayer = new BackgroundMusicPlayer([

'audioTracks/lady-of-the-80.mp3',
'audioTracks/digital-love.mp3',
'audioTracks/a-hero-of-the-80.mp3',
'audioTracks/stranger-things.mp3',
]);
'resources/audio/lady-of-the-80.mp3',
'resources/audio/digital-love.mp3',
'resources/audio/a-hero-of-the-80.mp3',
'resources/audio/stranger-things.mp3',
]);

0 comments on commit 5539bac

Please sign in to comment.