Skip to content

Commit

Permalink
🔥 update sounds url
Browse files Browse the repository at this point in the history
  • Loading branch information
i-naeem committed Mar 25, 2022
1 parent 70b5bc4 commit a0384b5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/components/sound-card/SoundCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const SoundCard = (props) => {
</div>

<audio loop ref={ref}>
<source src={url} />
<source src={process.env.PUBLIC_URL + '/' + url} />
</audio>

{playing ? (
Expand Down
46 changes: 23 additions & 23 deletions src/sounds.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
[
{ "title": "birds", "url": "/sounds/birds.mp3" },
{ "title": "library", "url": "/sounds/library.mp3" },
{ "title": "highway", "url": "/sounds/highway.mp3" },
{ "title": "night", "url": "/sounds/night.mp3" },
{ "title": "rowing", "url": "/sounds/rowing.mp3" },
{ "title": "steps", "url": "/sounds/steps.mp3" },
{ "title": "cafe", "url": "/sounds/cafe.mp3" },
{ "title": "fans", "url": "/sounds/fans.mp3" },
{ "title": "keyboard", "url": "/sounds/keyboard.mp3" },
{ "title": "ocean", "url": "/sounds/ocean.mp3" },
{ "title": "snow", "url": "/sounds/snow.mp3" },
{ "title": "train", "url": "/sounds/train.mp3" },
{ "title": "campfire", "url": "/sounds/campfire.mp3" },
{ "title": "farm", "url": "/sounds/farm.mp3" },
{ "title": "leaves", "url": "/sounds/leaves.mp3" },
{ "title": "office", "url": "/sounds/office.mp3" },
{ "title": "wind", "url": "/sounds/wind.mp3" },
{ "title": "clock", "url": "/sounds/clock.mp3" },
{ "title": "forest", "url": "/sounds/forest.mp3" },
{ "title": "lightning", "url": "/sounds/lightning.mp3" },
{ "title": "rain", "url": "/sounds/rain.mp3" },
{ "title": "stadium", "url": "/sounds/stadium.mp3" },
{ "title": "windchime", "url": "/sounds/windchime.mp3" }
{ "title": "birds", "url": "sounds/birds.mp3" },
{ "title": "library", "url": "sounds/library.mp3" },
{ "title": "highway", "url": "sounds/highway.mp3" },
{ "title": "night", "url": "sounds/night.mp3" },
{ "title": "rowing", "url": "sounds/rowing.mp3" },
{ "title": "steps", "url": "sounds/steps.mp3" },
{ "title": "cafe", "url": "sounds/cafe.mp3" },
{ "title": "fans", "url": "sounds/fans.mp3" },
{ "title": "keyboard", "url": "sounds/keyboard.mp3" },
{ "title": "ocean", "url": "sounds/ocean.mp3" },
{ "title": "snow", "url": "sounds/snow.mp3" },
{ "title": "train", "url": "sounds/train.mp3" },
{ "title": "campfire", "url": "sounds/campfire.mp3" },
{ "title": "farm", "url": "sounds/farm.mp3" },
{ "title": "leaves", "url": "sounds/leaves.mp3" },
{ "title": "office", "url": "sounds/office.mp3" },
{ "title": "wind", "url": "sounds/wind.mp3" },
{ "title": "clock", "url": "sounds/clock.mp3" },
{ "title": "forest", "url": "sounds/forest.mp3" },
{ "title": "lightning", "url": "sounds/lightning.mp3" },
{ "title": "rain", "url": "sounds/rain.mp3" },
{ "title": "stadium", "url": "sounds/stadium.mp3" },
{ "title": "windchime", "url": "sounds/windchime.mp3" }
]

0 comments on commit a0384b5

Please sign in to comment.