PipeWire 1.1.0
Loading...
Searching...
No Matches
pw_buffer Struct Reference

a buffer structure obtained from pw_stream_dequeue_buffer(). More...

#include <pipewire/stream.h>

Data Fields

struct spa_bufferbuffer
 the spa buffer
 
void * user_data
 user data attached to the buffer
 
uint64_t size
 This field is set by the user and the sum of all queued buffer is returned in the time info.
 
uint64_t requested
 For playback streams, this field contains the suggested amount of data to provide.
 

Detailed Description

Field Documentation

◆ buffer

◆ user_data

void* pw_buffer::user_data

user data attached to the buffer

◆ size

uint64_t pw_buffer::size

This field is set by the user and the sum of all queued buffer is returned in the time info.

For audio, it is advised to use the number of frames in the buffer for this field.

◆ requested

uint64_t pw_buffer::requested

For playback streams, this field contains the suggested amount of data to provide.

For audio streams this will be the amount of frames required by the resampler. This field is 0 when no suggestion is provided. Since 0.3.49

Examples
audio-src.c, and tutorial4.c.

The documentation for this struct was generated from the following file: