post_decode_audio_sink_stream::submit_mixed_buffer
Submits audio to the render device represented by this sink.
Syntax
void submit_mixed_buffer(
uint32_t byteCount,
void* mixedBuffer
)
Parameters
byteCount _In_
Type: uint32_t
The number of bytes in the buffer.
mixedBuffer _In_reads_bytes_(byteCount)
Type: void*
The buffer of processed and mixed audio data. Every audio buffer that is expected to play in unison for this sink's set of users must be mixed as one buffer and submitted in one call to this method. Any buffers submitted in sequential calls, will be played back sequentially. Callers are responsible for enforcing privacy and privilege between the source and sink users when mixing. Privacy and privilege relationships can be determined with post_decode_audio_sink_stream::can_receive_audio_from_source_stream. This buffer must comply with the format specified in post_decode_audio_sink_stream::set_processed_format.
Return value
Type: void
Remarks
Every 40ms the next mixed buffer from this stream will be sent to render. To prevent audio hiccups, buffers for audio that should be heard continuously should be submitted to this stream at a constant rate. After this stream has been closed, calls to submit buffers will silently fail. The app can check whether a stream is open or closed by calling post_decode_audio_sink_stream::is_open.
Requirements
Header: GameChat2.h
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles
See also
post_decode_audio_sink_stream
post_decode_audio_sink_stream::set_processed_format
post_decode_audio_sink_stream::is_open