try to fix sound on ios
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
import useSound from 'use-sound';
|
||||
|
||||
export default function Soundboard() {
|
||||
const [playBoyYouPlay] = useSound("/boyyouplay.m4a");
|
||||
const [playEatItUp] = useSound("/eatitup.m4a");
|
||||
const [playGangbusters] = useSound("/gangbusters.m4a");
|
||||
const [playHusky] = useSound("/husky.m4a");
|
||||
const [playPrettyFlags] = useSound("/prettyflags.m4a");
|
||||
const [playBoyYouPlay] = useSound("/boyyouplay.m4a", {soundEnabled: true});
|
||||
const [playEatItUp] = useSound("/eatitup.m4a", {soundEnabled: true});
|
||||
const [playGangbusters] = useSound("/gangbusters.m4a", {soundEnabled: true});
|
||||
const [playHusky] = useSound("/husky.m4a", {soundEnabled: true});
|
||||
const [playPrettyFlags] = useSound("/prettyflags.m4a", {soundEnabled: true});
|
||||
|
||||
const getButton = (title: string, play: () => void) => {
|
||||
return <button className="border-2 rounded-lg p-4 text-center text-xl font-medium cursor-pointer hover:bg-gray-200" onClick={() => play()}>{title}</button>
|
||||
|
||||
Reference in New Issue
Block a user