Merge audio streams in Jitsi Meet

Hello, I’m interested in merging two audio streams into one in Jitsi Meet and am curious about where the best place to do this would be.

My use case: I’d like to stream the user’s microphone along with audio from a custom virtual audio device on the user’s computer. I would prefer not to use something like an aggregate or multi-output device on the user’s computer, which is why I’m looking to merge audio streams in the Jitsi Meet client-side code.

It seems there may be a way of adjusting the code in createInitialLocalTracksAndConnect() in conference.js, which calls createLocalTracksF() to create tracks/streams. I realize I may have to adjust createLocalTracks() in the JitsiMeetJS library to accept multiple microphone device IDs.

Am I on the right track here?