Skip to content

Commit

Permalink
audio 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhaego committed Nov 8, 2024
1 parent 9a379d4 commit ef47135
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
20 changes: 10 additions & 10 deletions public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36179,30 +36179,30 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ updatePoolVolume: () => (/* binding */ updatePoolVolume),
/* harmony export */ updateSmokeVolume: () => (/* binding */ updateSmokeVolume)
/* harmony export */ });
const newKill = new Audio("../resources/NewKill.mp3");
const newKill = new Audio("../public/resources/NewKill.mp3");
const updateNewKillVolume = (volume) => {
newKill.volume = volume;
};
const north = new Audio("../resources/North.mp3");
const east = new Audio("../resources/East.mp3");
const north = new Audio("../public/resources/North.mp3");
const east = new Audio("../public/resources/East.mp3");
const updateSmokeVolume = (volume) => {
north.volume = volume;
east.volume = volume;
};
const pool = new Audio("../resources/Pool.mp3");
const poolPop = new Audio("../resources/PoolPopping.mp3");
const pool = new Audio("../public/resources/Pool.mp3");
const poolPop = new Audio("../public/resources/PoolPopping.mp3");
const updatePoolVolume = (volume) => {
pool.volume = volume;
poolPop.volume = volume;
};
const bomb = new Audio("../resources/Bomb.mp3");
const bomb = new Audio("../public/resources/Bomb.mp3");
const updateBombVolume = (volume) => {
bomb.volume = volume;
};
const umbra = new Audio("../resources/Umbra.mp3");
const glacies = new Audio("../resources/Glacies.mp3");
const curor = new Audio("../resources/Curor.mp3");
const fumus = new Audio("../resources/Fumus.mp3");
const umbra = new Audio("../public/resources/Umbra.mp3");
const glacies = new Audio("../public/resources/Glacies.mp3");
const curor = new Audio("../public/resources/Curor.mp3");
const fumus = new Audio("../public/resources/Fumus.mp3");
const updateOrderVolume = (volume) => {
umbra.volume = volume;
glacies.volume = volume;
Expand Down
22 changes: 11 additions & 11 deletions src/audio.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
export const newKill = new Audio("../resources/NewKill.mp3")
export const newKill = new Audio("../public/resources/NewKill.mp3")
export const updateNewKillVolume = (volume: number) => {
newKill.volume = volume
}

export const north = new Audio("../resources/North.mp3")
export const east = new Audio("../resources/East.mp3")
export const north = new Audio("../public/resources/North.mp3")
export const east = new Audio("../public/resources/East.mp3")
export const updateSmokeVolume = (volume: number) => {
north.volume = volume
east.volume = volume
}

export const pool = new Audio("../resources/Pool.mp3")
export const poolPop = new Audio("../resources/PoolPopping.mp3")
export const pool = new Audio("../public/resources/Pool.mp3")
export const poolPop = new Audio("../public/resources/PoolPopping.mp3")
export const updatePoolVolume = (volume: number) => {
pool.volume = volume
poolPop.volume = volume
}

export const bomb = new Audio("../resources/Bomb.mp3")
export const bomb = new Audio("../public/resources/Bomb.mp3")
export const updateBombVolume = (volume: number) => {
bomb.volume = volume
}

export const umbra = new Audio("../resources/Umbra.mp3")
export const glacies = new Audio("../resources/Glacies.mp3")
export const curor = new Audio("../resources/Curor.mp3")
export const fumus = new Audio("../resources/Fumus.mp3")
export const umbra = new Audio("../public/resources/Umbra.mp3")
export const glacies = new Audio("../public/resources/Glacies.mp3")
export const curor = new Audio("../public/resources/Curor.mp3")
export const fumus = new Audio("../public/resources/Fumus.mp3")
export const updateOrderVolume = (volume: number) => {
umbra.volume = volume
glacies.volume = volume
curor.volume = volume
fumus.volume = volume
}
}

0 comments on commit ef47135

Please sign in to comment.