Skip to content

How to play sounds from imported source when run locally? #20

Description

@newalphamedia

I import sound files like so:
const soundFiles = require.context('./assets/sounds', true, /\.(aac)$/i);

This creates some urls which I can pass to musquito to play, however it won't work when run locally, because of permission errors. It does work when I create an audio object passing the path, e.g. "new Audio(soundFiles[...])".

Is there a way to make musquito compatible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions