Skip to content

Commit

Permalink
Merge pull request #32 from Comon-tech/C-o-m-o-n-patch-2
Browse files Browse the repository at this point in the history
Update AudioPlayer.js
  • Loading branch information
C-o-m-o-n committed Dec 17, 2023
2 parents 5539bac + 9cc3228 commit a6ba2a5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 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(
'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'
'../audio/success-sound.mp3',
'../audio/wrong.mp3',
'../audio/click.mp3',
'../audio/tick_time_sound.mp3',
'../audio/tick_time_sound.mp3'
);

// Usage
export const backgroundMusicPlayer = new BackgroundMusicPlayer([

'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',
'../audio/lady-of-the-80.mp3',
'../audio/digital-love.mp3',
'../audio/a-hero-of-the-80.mp3',
'../audio/stranger-things.mp3',
]);

0 comments on commit a6ba2a5

Please sign in to comment.