PortAudio/portaudio

Spatial Audio

Closed this issue · 6 comments

I'd like to add spatial audio features onto the codebase. Any advise on how to achieve this.
Currently checking out wwise sdk,
https://github.com/ngoiyaeric/WwiseIncludes

Can you clarify what you mean by "spatial audio features"? To me this could mean:

  1. Exposing platform specific spatial audio capabilities (which? what are they?)
  2. Implement your own spatialisation algorithms: this can be done on top of PortAudio and requires no obvious changes to PortAudio.

Capabilities such as 7.1 surround sound configuration interleaving audio signal for multiple inputs.
I've recently started looking for ways to do this on top of port audio, any ideas how this can be achieved and from what module

Capabilities such as 7.1 surround sound configuration interleaving audio signal for multiple inputs. I've recently started looking for ways to do this on top of port audio, any ideas how this can be achieved and from what module

PortAudio already supports this. It's trivial to implement. All you have to do is use maxOutputChannels from the device info to choose what to do for different speaker configurations.

You just build out your output following these channel configuration conventions:
https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ksmedia/ns-ksmedia-ksaudio_channel_config

In addition to supporting multi-channel audio, a number of PortAudio host APIs have extensions to support channel selection. e.g. include\pa_win_wmme.h, include\pa_win_ds.h, and include\pa_win_wasapi.h provide the channelMask field. See the host-api-specific header files for details.

@ngoiyaeric does this resolve your query? if so I'd like to close the ticket.