Skip to content

Commit

Permalink
make sound settings optional + export all funcs for non hook use
Browse files Browse the repository at this point in the history
  • Loading branch information
naueramant committed May 20, 2024
1 parent e14cc7d commit a31d1c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/sounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ const useSounds = () => {
};

interface playOptions {
loop: boolean;
oneInstance: boolean;
loop?: boolean;
oneInstance?: boolean;
}

const play = (
Expand Down Expand Up @@ -146,5 +146,5 @@ const stopAll = () => {
activeSounds.clear();
};

export { SoundNames, useSounds };
export { SoundNames, mute, pause, play, stop, stopAll, unmute, useSounds };
export type { SoundName };

0 comments on commit a31d1c2

Please sign in to comment.