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
When I use audio element in Motion Manager's callback motionManager.on("motionStart", (group, index, audio) => {}) with createMediaElementSource for output the sound to different audio destination sources, the error message was below
MediaElementAudioSource outputs zeroes due to CORS access restrictions for [file name specified]
Some stackoverflow answers suggested adding crossOrigin attribute with value "anonymous" to audio element, I applied for the build code of pixi-live2d-display and it works just fine. But not for directly modifying the audio element of motion manager's callback above.
I have to patch the SoundManager for the workaround, but still suggest adding extra crossOrigin option than current volume for SoundManager
The text was updated successfully, but these errors were encountered:
Yeah this would be a nice feature. There's already a crossOrigin option when creating the model, but that only applies to image elements, I'll make it also work for audios.
When I use
audio
element in Motion Manager's callbackmotionManager.on("motionStart", (group, index, audio) => {})
withcreateMediaElementSource
for output the sound to different audio destination sources, the error message was belowSome stackoverflow answers suggested adding crossOrigin attribute with value "anonymous" to audio element, I applied for the build code of pixi-live2d-display and it works just fine. But not for directly modifying the audio element of motion manager's callback above.
I have to patch the SoundManager for the workaround, but still suggest adding extra
crossOrigin
option than currentvolume
for SoundManagerThe text was updated successfully, but these errors were encountered: