Data Fields | |
uint32_t | maxlength |
Maximum length of the buffer. | |
uint32_t | tlength |
Playback only: target length of the buffer. | |
uint32_t | prebuf |
Playback only: pre-buffering. | |
uint32_t | minreq |
Playback only: minimum request. | |
uint32_t | fragsize |
Recording only: fragment size. |
uint32_t pa_buffer_attr::maxlength |
Maximum length of the buffer.
Setting this to 0 will initialize this to the maximum value supported by server, which is recommended.
uint32_t pa_buffer_attr::tlength |
Playback only: target length of the buffer.
The server tries to assure that at least tlength bytes are always available in the buffer. It is recommended to set this to 0, which will initialize this to a value that is deemed sensible by the server. However, this value will default to something like 2s, i.e. for applications that have specific latency requirements this value should be set to the maximum latency that the application can deal with.
uint32_t pa_buffer_attr::prebuf |
Playback only: pre-buffering.
The server does not start with playback before at least prebug bytes are available in the buffer. It is recommended to set this to 0, which will initialize this to the same value as tlength, whatever that may be.
uint32_t pa_buffer_attr::minreq |
Playback only: minimum request.
The server does not request less than minreq bytes from the client, instead waits until the buffer is free enough to request more bytes at once. It is recommended to set this to 0, which will initialize this to a value that is deemed sensible by the server.
uint32_t pa_buffer_attr::fragsize |
Recording only: fragment size.
The server sends data in blocks of fragsize bytes size. Large values deminish interactivity with other operations on the connection context but decrease control overhead. It is recommended to set this to 0, which will initialize this to a value that is deemed sensible by the server. However, this value will default to something like 2s, i.e. for applications that have specific latency requirements this value should be set to the maximum latency that the application can deal with.