Skip to content

Commit

Permalink
Add type to load AudioBuffer in types.ts (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoncoder047 authored and lajbel committed Oct 22, 2024
1 parent 7506c10 commit 75a910c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@ export interface KAPLAYCtx<
*
* @group Assets
*/
loadSound(name: string | null, src: string | ArrayBuffer): Asset<SoundData>;
loadSound(name: string | null, src: string | ArrayBuffer | AudioBuffer): Asset<SoundData>;
/**
* Like loadSound(), but the audio is streamed and won't block loading. Use this for big audio files like background music.
*
Expand Down

0 comments on commit 75a910c

Please sign in to comment.