post_decode_audio_source_stream::return_buffer

Tells Game Chat it can reclaim memory associated with this buffer.

Syntax

void return_buffer(  
    void* buffer  
)  

Parameters

buffer   _In_
Type: void*

Return value

Type: void

Remarks

This is not for submitting processed buffers. Use post_decode_audio_sink_stream::submit_mixed_buffer. Buffers do not need to be returned in the order they were retrieved from post_decode_audio_source_stream::get_next_buffer. A maximum of 10 unreturned buffers can exist for any stream. When this limit is reached, the post-decode audio source stream will drop any new buffers until more buffers are returned to this method.

Requirements

Header: GameChat2.h

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

post_decode_audio_source_stream
post_decode_audio_source_stream::get_next_buffer