ParsecHostSubmitAudio

ps,
format,
uint32_t
sampleRate,
uint8_t *
pcm,
uint32_t
frames
)

Submit PCM audio to connected guests. HOST_GAME only.

Audio must be submitted in two channel PCM.

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
informatPCM audio format.
insampleRatePCM sample rate in Hz.
inpcmAudio buffer containing two channel frames.
inframesThe number of audio frames contained in pcm.

Returns

PARSEC_OK on success or PARSEC_NOT_RUNNING if the host has not been started.