ParsecHostSubmitAudio

ps,
format,
uint32_t
sampleRate,
const void *
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.

Parsec SDK on GitHubDiscuss on Discord

You are prepared.

Create an account now for free.

Sign Up
Parsec© 2020
Made with ❤️ in NYC