Skip to content

Conversation

bagyoni
Copy link
Contributor

@bagyoni bagyoni commented Apr 9, 2025

This PR (delete as applicable)

  • Fixes a bug

Describe the changes below:

When sending an XHR with responseType: 'arraybuffer', the response field will get populated with an ArrayBuffer. The fake XHR code path doesn't do this, so audio files, which expect this field, can't be loaded from base64.
The fix uses this workaround to do the conversion. Tested with a few jsfxr outputs and found no issues.

@photonstorm
Copy link
Collaborator

Note: Merged to v4, needs back-porting to v3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants