diff options
| author | Caleb <caleb.mabry.15@cnu.edu> | 2022-09-10 11:09:49 -0400 |
|---|---|---|
| committer | Caleb <caleb.mabry.15@cnu.edu> | 2022-09-10 11:09:49 -0400 |
| commit | 108636666d474119892c4b3a2f3beadb767b006e (patch) | |
| tree | 32bffa6a2cb8cc3aca3a6e3fd36ac6847561da53 /webAO/viewport/utils/createShoutAudio.ts | |
| parent | abba7630e13f7e5269c14c2c43b66b03559ddfe3 (diff) | |
Structured viewport a little differently
Diffstat (limited to 'webAO/viewport/utils/createShoutAudio.ts')
| -rw-r--r-- | webAO/viewport/utils/createShoutAudio.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/webAO/viewport/utils/createShoutAudio.ts b/webAO/viewport/utils/createShoutAudio.ts new file mode 100644 index 0000000..8211116 --- /dev/null +++ b/webAO/viewport/utils/createShoutAudio.ts @@ -0,0 +1,9 @@ +import { AO_HOST } from "../../client/aoHost"; + +export const createShoutAudio = () => { + const shoutAudio = document.getElementById( + "client_shoutaudio" + ) as HTMLAudioElement; + shoutAudio.src = `${AO_HOST}misc/default/objection.opus`; + return shoutAudio; +};
\ No newline at end of file |
