7#ifndef SINK_SOURCE_UTILS_H
8#define SINK_SOURCE_UTILS_H
29 struct sof_sink *sink,
size_t commit_size);
41 struct sof_sink *sink,
bool free,
size_t size);
73 size_t n = MIN(src_frames, sink_frames);
size_t sink_get_free_frames(struct sof_sink *sink)
Retrieves size of free space available in sink (in frames) return number of free frames in buffer ava...
size_t source_get_data_frames_available(struct sof_source *source)
Retrieves size of available data (in frames) return number of frames that are available for immediate...
static uint32_t source_align_frames_round_down(struct sof_source *source, uint32_t frames)
Definition source_api.h:401
Fixed-point arithmetic, saturation, rounding, and number format conversions.
int release_source_and_commit_sink(struct sof_source *source, size_t free_size, struct sof_sink *sink, size_t commit_size)
release processed data from source and commit produced data to sink
static size_t source_sink_avail_frames_aligned(struct sof_source *source, struct sof_sink *sink)
Computes maximum number of frames aligned with the source align criteria that can be copied from sour...
Definition sink_source_utils.h:68
int source_to_sink_copy(struct sof_source *source, struct sof_sink *sink, bool free, size_t size)
copy bytes from source to sink
int sink_fill_with_silence(struct sof_sink *sink, size_t size)
fill sink with silence (zeros)
int source_drop_data(struct sof_source *source, size_t size)
drop data from source
Audio sink API helpers and stream configuration.
Audio source API helpers and stream configuration.
internals of sink API.
Definition sink_api.h:141
internals of source API.
Definition source_api.h:137