stream: don't confuse frames/samples in docs

See #3683
This commit is contained in:
Wim Taymans 2023-11-30 11:10:19 +01:00
parent 6c772a1843
commit 0a7f8128a3

View file

@ -194,10 +194,10 @@ struct pw_buffer {
uint64_t size; /**< This field is set by the user and the sum of uint64_t size; /**< This field is set by the user and the sum of
* all queued buffer is returned in the time info. * all queued buffer is returned in the time info.
* For audio, it is advised to use the number of * For audio, it is advised to use the number of
* samples in the buffer for this field. */ * frames in the buffer for this field. */
uint64_t requested; /**< For playback streams, this field contains the uint64_t requested; /**< For playback streams, this field contains the
* suggested amount of data to provide. For audio * suggested amount of data to provide. For audio
* streams this will be the amount of samples * streams this will be the amount of frames
* required by the resampler. This field is 0 * required by the resampler. This field is 0
* when no suggestion is provided. Since 0.3.49 */ * when no suggestion is provided. Since 0.3.49 */
}; };
@ -245,10 +245,10 @@ struct pw_stream_control {
* *
* pw_time.queued is the sum of all the pw_buffer.size fields of the buffers that are * pw_time.queued is the sum of all the pw_buffer.size fields of the buffers that are
* currently queued in the stream but not yet processed. The application can choose * currently queued in the stream but not yet processed. The application can choose
* the units of this value, for example, time, samples or bytes (below expressed * the units of this value, for example, time, samples, frames or bytes (below
* as app.rate). * expressed as app.rate).
* *
* pw_time.buffered is format dependent, for audio/raw it contains the number of samples * pw_time.buffered is format dependent, for audio/raw it contains the number of frames
* that are buffered inside the resampler/converter. * that are buffered inside the resampler/converter.
* *
* The total delay of data in a stream is the sum of the queued and buffered data * The total delay of data in a stream is the sum of the queued and buffered data
@ -312,7 +312,7 @@ struct pw_time {
* of the size fields in the pw_buffer that are * of the size fields in the pw_buffer that are
* currently queued */ * currently queued */
uint64_t buffered; /**< for audio/raw streams, this contains the extra uint64_t buffered; /**< for audio/raw streams, this contains the extra
* number of samples buffered in the resampler. * number of frames buffered in the resampler.
* Since 0.3.50. */ * Since 0.3.50. */
uint32_t queued_buffers; /**< The number of buffers that are queued. Since 0.3.50 */ uint32_t queued_buffers; /**< The number of buffers that are queued. Since 0.3.50 */
uint32_t avail_buffers; /**< The number of buffers that can be dequeued. Since 0.3.50 */ uint32_t avail_buffers; /**< The number of buffers that can be dequeued. Since 0.3.50 */