libspatialaudio icon indicating copy to clipboard operation
libspatialaudio copied to clipboard

Encoding Multiple Sound Sources

Open mhuzai opened this issue 5 years ago • 4 comments

AmbisonicEncoder's process() function only encodes a mono-signal. If we wanted to encode several different sound sources, how would we go about doing that?

Thanks!

mhuzai avatar Nov 11 '19 18:11 mhuzai

You mean multiple channels or multiple sources with multiple channels?

jbkempf avatar Dec 17 '19 17:12 jbkempf

Both, actually. And also just multiple single-channel sources. For the last one, I presume we just encode them one by one and sum the fields?

mhuzai avatar Dec 17 '19 17:12 mhuzai

For the last one, I presume we just encode them one by one and sum the fields?

Yes, I think this is the way to go.

Regarding sources with multiple channels, I would split them and process each channel as a single mono input.

magwyz avatar Jan 20 '20 16:01 magwyz

I see. But once the channels have been split apart, what position would we use for each of them? I'm assuming they would all have the same position?

Another question: If I wanted to convert a song, say from YouTube, into HOA, rotate the soundfield, and then play it back, could I do it using the above process -- get song, split stereo channels, encode separately, rotate, binauralize?

mhuzai avatar Apr 18 '20 18:04 mhuzai