ParsecHostSubmitAudio
ParsecStatusParsecHostSubmitAudio(Parsec *ps,ParsecPCMFormatformat,uint32_tsampleRate,const void *pcm,uint32_tframes)
Submit PCM audio to connected guests. HOST_GAME
only.
Audio must be submitted in two channel PCM.
Parameters
Direction | Name | Description |
---|---|---|
in | ps | Parsec instance returned by ParsecInit . |
in | format | PCM audio format. |
in | sampleRate | PCM sample rate in Hz. |
in | pcm | Audio buffer containing two channel frames. |
in | frames | The number of audio frames contained in pcm . |
Returns
PARSEC_OK
on success or PARSEC_NOT_RUNNING
if the host has not been started.