Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Overriding Unity's Audio.js-code

Discussion in 'Web' started by FvanHoof_Talespin, Jul 31, 2023.

  1. FvanHoof_Talespin

    FvanHoof_Talespin

    Joined:
    May 16, 2023
    Posts:
    3
    Is there any way for me to override the existing method-implementations in Unity's Audio.js?

    I desperately need to adjust JS_Sound_Play in order to add the bufferInstance-variable into the channel, so I can find out which Channel is related to which AudioBuffer (for analysis-purposes).

    Can I override that method in a jslib?
    Or would I HAVE to change the actual Audio.js? (I would prefer not to, as that would require me to do a bunch of CI/CD-pipeline-work)