Hi! I'm making my first plugin, to solve a very specific problem I have. I would like to be able to record in 8 channel audio (7.1 surround) while simultaneously streaming in stereo (with my own downmixing function to handle the conversion). After digging through the docs and doing a little experimenting, though, I'm not sure it's possible. I could use a second opinion on this.
Edit: To clarify, I am recording/streaming both audio and video. My problem is only with the audio side though.
- OBS sets speaker layout globally, so all outputs are receiving the same number of channels. AFAICT, there is no setting on the outputs for the number of channels. So just setting the number of channels on the individual outputs is not possible.
- I then thought that I could add in a conversion callback using `audio_output_connect`, but I believe that is applied to the global pipeline, not an individual output. So again, that doesn't work.
- My last thought is that I could interrupt the audio signal entering the individual outputs, and modify the channels/downmix there. But I can't seem to find a function that would insert a callback at that point in the chain. Even if there is an appropriate function, I'm not sure I would have any way to affect the number of channels actually being output. I could probably downmix to two channels, but I believe it would still be sending an 8 channel signal just with 6 empty channels.
- For completions sake, I could technically do a complete overhaul of the audio pipeline to allow sending different audio signals to each output. But that's not exactly feasible.
Edit: To clarify, I am recording/streaming both audio and video. My problem is only with the audio side though.
Last edited: