Skip to content

filenames in loadSound seems double-encoded + can't get to setup() #83

@msawired

Description

@msawired

I added new p5.sound library to OpenProcessing, however it broke all the sketches that is supposed to work with it. Did some investigation and seems to fail on loadSound directly.

Here is an example:
https://openprocessing.org/sketch/2901469#

Since then, I reverted the version in the library list to the legacy one, but you can test the new library above.
You can see that the file with space in it doesn't work as expected (browsers already encode the URL on fetch requests, and p5.seems to encode it again.

Image

With a normalized filename, preload doesn't seem to complete and setup() is never run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions