Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sound file rename #212

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Binary file removed src/Audio/Mii-Channel.mp3
Binary file not shown.
6 changes: 3 additions & 3 deletions src/Components/AudioPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import {
audioIcon,
updateAudioIcon,
} from "./StateParent";
import BackgroundSound from "../Audio/BackgroundMusic.mp3";
import ButtonClick from "../Audio/Button-Click2-Trimmed.mp3";
import BackgroundSound from "../Audio/Burgers.mp3";
import SliderClick from "../Audio/Slider-Click.mp3";

// Audio players for SFX and background music
const backgroundMusic = new Audio(BackgroundSound);
const buttonSoundEffect = new Audio(ButtonClick);
const sliderSoundEffect = new Audio(SliderClick);
const backgroundMusic = new Audio(BackgroundSound);

//Sound effect played when buttons clicked
export function playButtonClick() {
Expand All @@ -22,7 +23,6 @@ export function playButtonClick() {
export function playSliderSet() {
sliderSoundEffect.play();
}

//Base music player
export function AudioPlayer() {
//Audio States
Expand Down