Skip to content

Commit

Permalink
Add initial loading for rest of music
Browse files Browse the repository at this point in the history
  • Loading branch information
ryand56 committed Dec 18, 2022
1 parent fbbc607 commit f5a414a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/MusicAudio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface MusicAudioProps {
}

const MusicAudio = ({ vol }: MusicAudioProps) => {
const [fileIdx, setFileIdx] = React.useState<number>(randNum(1, 13));
const [fileIdx, setFileIdx] = React.useState<number>(randNum(1, 33));
const [file, setFile] = React.useState<string>(`/music/${encodeURIComponent(`Weatherscan Track ${fileIdx}.mp3`)}`);
const [loop, setLoop] = React.useState<boolean>(false);

Expand Down

0 comments on commit f5a414a

Please sign in to comment.