diff --git a/src/client/audio.ts b/src/client/audio.ts index f1a817d3..74c73336 100644 --- a/src/client/audio.ts +++ b/src/client/audio.ts @@ -2,12 +2,12 @@ import * as c from "./constants.js" export const soundPongArr: HTMLAudioElement[] = []; -export const soundRoblox = new Audio("http://localhost:8080/sound/roblox-oof.mp3"); +export const soundRoblox = new Audio("http://localhost:8080/sound/roblox-oof.ogg"); export function initAudio(muteFlag: boolean) { for (let i = 0; i <= 32; i++) { - soundPongArr.push(new Audio("http://localhost:8080/sound/pong/"+i+".mp3")); + soundPongArr.push(new Audio("http://localhost:8080/sound/pong/"+i+".ogg")); soundPongArr[i].volume = c.soundPongVolume; soundPongArr[i].muted = muteFlag; } diff --git a/src/client/pong.html b/src/client/pong.html index cea6522b..d23e5590 100644 --- a/src/client/pong.html +++ b/src/client/pong.html @@ -21,9 +21,9 @@
- + - +
diff --git a/src/server/server.ts b/src/server/server.ts index 09b6c459..20801d7f 100644 --- a/src/server/server.ts +++ b/src/server/server.ts @@ -28,6 +28,9 @@ const server = http.createServer((req, res) => { else if (path.extname(filename) === ".mp3") { res.writeHead(200, {"Content-Type": "audio/mpeg"}); } + else if (path.extname(filename) === ".ogg") { + res.writeHead(200, {"Content-Type": "audio/ogg"}); + } res.write(data); return res.end(); }); diff --git a/www/sound/pong/0.mp3 b/www/sound/pong/0.mp3 deleted file mode 100644 index 14f66a64..00000000 Binary files a/www/sound/pong/0.mp3 and /dev/null differ diff --git a/www/sound/pong/0.ogg b/www/sound/pong/0.ogg new file mode 100644 index 00000000..93d05409 Binary files /dev/null and b/www/sound/pong/0.ogg differ diff --git a/www/sound/pong/1.mp3 b/www/sound/pong/1.mp3 deleted file mode 100644 index dae74cab..00000000 Binary files a/www/sound/pong/1.mp3 and /dev/null differ diff --git a/www/sound/pong/1.ogg b/www/sound/pong/1.ogg new file mode 100644 index 00000000..3a268b34 Binary files /dev/null and b/www/sound/pong/1.ogg differ diff --git a/www/sound/pong/10.mp3 b/www/sound/pong/10.mp3 deleted file mode 100644 index f70de101..00000000 Binary files a/www/sound/pong/10.mp3 and /dev/null differ diff --git a/www/sound/pong/10.ogg b/www/sound/pong/10.ogg new file mode 100644 index 00000000..855ad78b Binary files /dev/null and b/www/sound/pong/10.ogg differ diff --git a/www/sound/pong/11.mp3 b/www/sound/pong/11.mp3 deleted file mode 100644 index e64aa124..00000000 Binary files a/www/sound/pong/11.mp3 and /dev/null differ diff --git a/www/sound/pong/11.ogg b/www/sound/pong/11.ogg new file mode 100644 index 00000000..655917b5 Binary files /dev/null and b/www/sound/pong/11.ogg differ diff --git a/www/sound/pong/12.mp3 b/www/sound/pong/12.mp3 deleted file mode 100644 index 47c75bd6..00000000 Binary files a/www/sound/pong/12.mp3 and /dev/null differ diff --git a/www/sound/pong/12.ogg b/www/sound/pong/12.ogg new file mode 100644 index 00000000..11336a76 Binary files /dev/null and b/www/sound/pong/12.ogg differ diff --git a/www/sound/pong/13.mp3 b/www/sound/pong/13.mp3 deleted file mode 100644 index 724e8b6e..00000000 Binary files a/www/sound/pong/13.mp3 and /dev/null differ diff --git a/www/sound/pong/13.ogg b/www/sound/pong/13.ogg new file mode 100644 index 00000000..71cfead6 Binary files /dev/null and b/www/sound/pong/13.ogg differ diff --git a/www/sound/pong/14.mp3 b/www/sound/pong/14.mp3 deleted file mode 100644 index 4b24e4ad..00000000 Binary files a/www/sound/pong/14.mp3 and /dev/null differ diff --git a/www/sound/pong/14.ogg b/www/sound/pong/14.ogg new file mode 100644 index 00000000..066fff69 Binary files /dev/null and b/www/sound/pong/14.ogg differ diff --git a/www/sound/pong/15.mp3 b/www/sound/pong/15.mp3 deleted file mode 100644 index 8bee98e0..00000000 Binary files a/www/sound/pong/15.mp3 and /dev/null differ diff --git a/www/sound/pong/15.ogg b/www/sound/pong/15.ogg new file mode 100644 index 00000000..011f139c Binary files /dev/null and b/www/sound/pong/15.ogg differ diff --git a/www/sound/pong/16.mp3 b/www/sound/pong/16.mp3 deleted file mode 100644 index 20e994f2..00000000 Binary files a/www/sound/pong/16.mp3 and /dev/null differ diff --git a/www/sound/pong/16.ogg b/www/sound/pong/16.ogg new file mode 100644 index 00000000..7e852275 Binary files /dev/null and b/www/sound/pong/16.ogg differ diff --git a/www/sound/pong/17.mp3 b/www/sound/pong/17.mp3 deleted file mode 100644 index c78ff6f9..00000000 Binary files a/www/sound/pong/17.mp3 and /dev/null differ diff --git a/www/sound/pong/17.ogg b/www/sound/pong/17.ogg new file mode 100644 index 00000000..9860139d Binary files /dev/null and b/www/sound/pong/17.ogg differ diff --git a/www/sound/pong/18.mp3 b/www/sound/pong/18.mp3 deleted file mode 100644 index ce844dbe..00000000 Binary files a/www/sound/pong/18.mp3 and /dev/null differ diff --git a/www/sound/pong/18.ogg b/www/sound/pong/18.ogg new file mode 100644 index 00000000..6ad25391 Binary files /dev/null and b/www/sound/pong/18.ogg differ diff --git a/www/sound/pong/19.mp3 b/www/sound/pong/19.mp3 deleted file mode 100644 index 884e9ec2..00000000 Binary files a/www/sound/pong/19.mp3 and /dev/null differ diff --git a/www/sound/pong/19.ogg b/www/sound/pong/19.ogg new file mode 100644 index 00000000..f6fc42d6 Binary files /dev/null and b/www/sound/pong/19.ogg differ diff --git a/www/sound/pong/2.mp3 b/www/sound/pong/2.mp3 deleted file mode 100644 index 5286a9fb..00000000 Binary files a/www/sound/pong/2.mp3 and /dev/null differ diff --git a/www/sound/pong/2.ogg b/www/sound/pong/2.ogg new file mode 100644 index 00000000..0f09bb30 Binary files /dev/null and b/www/sound/pong/2.ogg differ diff --git a/www/sound/pong/20.mp3 b/www/sound/pong/20.mp3 deleted file mode 100644 index 16a10734..00000000 Binary files a/www/sound/pong/20.mp3 and /dev/null differ diff --git a/www/sound/pong/20.ogg b/www/sound/pong/20.ogg new file mode 100644 index 00000000..11ac780e Binary files /dev/null and b/www/sound/pong/20.ogg differ diff --git a/www/sound/pong/21.mp3 b/www/sound/pong/21.mp3 deleted file mode 100644 index 3a7ab30d..00000000 Binary files a/www/sound/pong/21.mp3 and /dev/null differ diff --git a/www/sound/pong/21.ogg b/www/sound/pong/21.ogg new file mode 100644 index 00000000..7c724dd4 Binary files /dev/null and b/www/sound/pong/21.ogg differ diff --git a/www/sound/pong/22.mp3 b/www/sound/pong/22.mp3 deleted file mode 100644 index 60be1f14..00000000 Binary files a/www/sound/pong/22.mp3 and /dev/null differ diff --git a/www/sound/pong/22.ogg b/www/sound/pong/22.ogg new file mode 100644 index 00000000..b2ca9758 Binary files /dev/null and b/www/sound/pong/22.ogg differ diff --git a/www/sound/pong/23.mp3 b/www/sound/pong/23.mp3 deleted file mode 100644 index 000da41c..00000000 Binary files a/www/sound/pong/23.mp3 and /dev/null differ diff --git a/www/sound/pong/23.ogg b/www/sound/pong/23.ogg new file mode 100644 index 00000000..f57724b9 Binary files /dev/null and b/www/sound/pong/23.ogg differ diff --git a/www/sound/pong/24.mp3 b/www/sound/pong/24.mp3 deleted file mode 100644 index 94d61a12..00000000 Binary files a/www/sound/pong/24.mp3 and /dev/null differ diff --git a/www/sound/pong/24.ogg b/www/sound/pong/24.ogg new file mode 100644 index 00000000..90093efc Binary files /dev/null and b/www/sound/pong/24.ogg differ diff --git a/www/sound/pong/25.mp3 b/www/sound/pong/25.mp3 deleted file mode 100644 index 0b724c06..00000000 Binary files a/www/sound/pong/25.mp3 and /dev/null differ diff --git a/www/sound/pong/25.ogg b/www/sound/pong/25.ogg new file mode 100644 index 00000000..27dfe8eb Binary files /dev/null and b/www/sound/pong/25.ogg differ diff --git a/www/sound/pong/26.mp3 b/www/sound/pong/26.mp3 deleted file mode 100644 index bb5518fb..00000000 Binary files a/www/sound/pong/26.mp3 and /dev/null differ diff --git a/www/sound/pong/26.ogg b/www/sound/pong/26.ogg new file mode 100644 index 00000000..80cb60fa Binary files /dev/null and b/www/sound/pong/26.ogg differ diff --git a/www/sound/pong/27.mp3 b/www/sound/pong/27.mp3 deleted file mode 100644 index ebe5bdc1..00000000 Binary files a/www/sound/pong/27.mp3 and /dev/null differ diff --git a/www/sound/pong/27.ogg b/www/sound/pong/27.ogg new file mode 100644 index 00000000..13332de6 Binary files /dev/null and b/www/sound/pong/27.ogg differ diff --git a/www/sound/pong/28.mp3 b/www/sound/pong/28.mp3 deleted file mode 100644 index 2c265d07..00000000 Binary files a/www/sound/pong/28.mp3 and /dev/null differ diff --git a/www/sound/pong/28.ogg b/www/sound/pong/28.ogg new file mode 100644 index 00000000..29615795 Binary files /dev/null and b/www/sound/pong/28.ogg differ diff --git a/www/sound/pong/29.mp3 b/www/sound/pong/29.mp3 deleted file mode 100644 index 7673dea9..00000000 Binary files a/www/sound/pong/29.mp3 and /dev/null differ diff --git a/www/sound/pong/29.ogg b/www/sound/pong/29.ogg new file mode 100644 index 00000000..41f95343 Binary files /dev/null and b/www/sound/pong/29.ogg differ diff --git a/www/sound/pong/3.mp3 b/www/sound/pong/3.mp3 deleted file mode 100644 index 91ca27d4..00000000 Binary files a/www/sound/pong/3.mp3 and /dev/null differ diff --git a/www/sound/pong/3.ogg b/www/sound/pong/3.ogg new file mode 100644 index 00000000..12448222 Binary files /dev/null and b/www/sound/pong/3.ogg differ diff --git a/www/sound/pong/30.mp3 b/www/sound/pong/30.mp3 deleted file mode 100644 index bbc57176..00000000 Binary files a/www/sound/pong/30.mp3 and /dev/null differ diff --git a/www/sound/pong/30.ogg b/www/sound/pong/30.ogg new file mode 100644 index 00000000..bd4e4ffd Binary files /dev/null and b/www/sound/pong/30.ogg differ diff --git a/www/sound/pong/31.mp3 b/www/sound/pong/31.mp3 deleted file mode 100644 index a0da9471..00000000 Binary files a/www/sound/pong/31.mp3 and /dev/null differ diff --git a/www/sound/pong/31.ogg b/www/sound/pong/31.ogg new file mode 100644 index 00000000..4447b52a Binary files /dev/null and b/www/sound/pong/31.ogg differ diff --git a/www/sound/pong/32.mp3 b/www/sound/pong/32.mp3 deleted file mode 100644 index 72e092ed..00000000 Binary files a/www/sound/pong/32.mp3 and /dev/null differ diff --git a/www/sound/pong/32.ogg b/www/sound/pong/32.ogg new file mode 100644 index 00000000..a58240a1 Binary files /dev/null and b/www/sound/pong/32.ogg differ diff --git a/www/sound/pong/4.mp3 b/www/sound/pong/4.mp3 deleted file mode 100644 index c78bcbc4..00000000 Binary files a/www/sound/pong/4.mp3 and /dev/null differ diff --git a/www/sound/pong/4.ogg b/www/sound/pong/4.ogg new file mode 100644 index 00000000..688b1f81 Binary files /dev/null and b/www/sound/pong/4.ogg differ diff --git a/www/sound/pong/5.mp3 b/www/sound/pong/5.mp3 deleted file mode 100644 index 50d7f57a..00000000 Binary files a/www/sound/pong/5.mp3 and /dev/null differ diff --git a/www/sound/pong/5.ogg b/www/sound/pong/5.ogg new file mode 100644 index 00000000..d2163268 Binary files /dev/null and b/www/sound/pong/5.ogg differ diff --git a/www/sound/pong/6.mp3 b/www/sound/pong/6.mp3 deleted file mode 100644 index dd3b16eb..00000000 Binary files a/www/sound/pong/6.mp3 and /dev/null differ diff --git a/www/sound/pong/6.ogg b/www/sound/pong/6.ogg new file mode 100644 index 00000000..34bdd117 Binary files /dev/null and b/www/sound/pong/6.ogg differ diff --git a/www/sound/pong/7.mp3 b/www/sound/pong/7.mp3 deleted file mode 100644 index a721426b..00000000 Binary files a/www/sound/pong/7.mp3 and /dev/null differ diff --git a/www/sound/pong/7.ogg b/www/sound/pong/7.ogg new file mode 100644 index 00000000..9c9c994f Binary files /dev/null and b/www/sound/pong/7.ogg differ diff --git a/www/sound/pong/8.mp3 b/www/sound/pong/8.mp3 deleted file mode 100644 index a0a6d907..00000000 Binary files a/www/sound/pong/8.mp3 and /dev/null differ diff --git a/www/sound/pong/8.ogg b/www/sound/pong/8.ogg new file mode 100644 index 00000000..0f9acf99 Binary files /dev/null and b/www/sound/pong/8.ogg differ diff --git a/www/sound/pong/9.mp3 b/www/sound/pong/9.mp3 deleted file mode 100644 index 79555530..00000000 Binary files a/www/sound/pong/9.mp3 and /dev/null differ diff --git a/www/sound/pong/9.ogg b/www/sound/pong/9.ogg new file mode 100644 index 00000000..15d82091 Binary files /dev/null and b/www/sound/pong/9.ogg differ diff --git a/www/sound/roblox-oof.mp3 b/www/sound/roblox-oof.mp3 deleted file mode 100644 index 79bd139c..00000000 Binary files a/www/sound/roblox-oof.mp3 and /dev/null differ diff --git a/www/sound/roblox-oof.ogg b/www/sound/roblox-oof.ogg new file mode 100644 index 00000000..689946ed Binary files /dev/null and b/www/sound/roblox-oof.ogg differ