You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of Cables, what appears to be happening is that Cables responds to fetch(/baz.wav) with HTML as opposed to a 404. This causes FaustWASM to throw a "cannot decode audio data" exception. Changing the order the URLs are tried in, starting with the URL defined in the declare soundfiles directive as root, should solve this.
I would be happy to take this on but I may need some help determining which general part of the Soundfile or SoundfileReader class I would need to fix.
The text was updated successfully, but these errors were encountered:
Fetching soundfiles with a
declare soundfiles
directive, in an environment where fetches to/
can return invalid data, throws an exception.For example, this fails on the Cables.gl platform:
While this succeeds:
In the case of Cables, what appears to be happening is that Cables responds to
fetch(/baz.wav)
with HTML as opposed to a 404. This causes FaustWASM to throw a "cannot decode audio data" exception. Changing the order the URLs are tried in, starting with the URL defined in thedeclare soundfiles
directive as root, should solve this.I would be happy to take this on but I may need some help determining which general part of the
Soundfile
orSoundfileReader
class I would need to fix.The text was updated successfully, but these errors were encountered: