Skip to content

Commit

Permalink
fix: remove strange aliens from incorrect worlds (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel authored Sep 5, 2024
1 parent af9f717 commit d526d69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/audio/audio.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { SoundData } from "../assets";
import { createEmptyAudioBuffer } from "../gfx";
import burpSoundSrc from "../kassets/burp.mp3";

export type AudioCtx = ReturnType<typeof initAudio>;

export function createEmptyAudioBuffer(ctx: AudioContext) {
return ctx.createBuffer(1, 1, 44100);
}

export const initAudio = () => {
const audio = (() => {
const ctx = new (
Expand Down
4 changes: 0 additions & 4 deletions src/gfx/anchor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,3 @@ export function alignPt(align: TextAlign): number {
return 0;
}
}

export function createEmptyAudioBuffer(ctx: AudioContext) {
return ctx.createBuffer(1, 1, 44100);
}

0 comments on commit d526d69

Please sign in to comment.