Sound Open Firmware
Loading...
Searching...
No Matches
sink_api.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2023 Intel Corporation. All rights reserved.
4 *
5 */
6
7#ifndef __SOF_SINK_API_H__
8#define __SOF_SINK_API_H__
9
10#include <module/audio/sink_api.h>
11
22void sink_init(struct sof_sink *sink, const struct sink_ops *ops,
23 struct sof_audio_stream_params *audio_stream_params);
24
31size_t sink_get_num_of_processed_bytes(struct sof_sink *sink);
32
36void sink_reset_num_of_processed_bytes(struct sof_sink *sink);
37
39bool sink_get_overrun(struct sof_sink *sink);
40
42void sink_set_min_free_space(struct sof_sink *sink, size_t min_free_space);
43
44#endif /* __SOF_SINK_API_H__ */
bool sink_get_overrun(struct sof_sink *sink)
set of functions for retrieve audio parameters
size_t sink_get_num_of_processed_bytes(struct sof_sink *sink)
Get total number of bytes processed by the sink (meaning - committed by sink_commit_buffer()).
void sink_init(struct sof_sink *sink, const struct sink_ops *ops, struct sof_audio_stream_params *audio_stream_params)
Init of the API, must be called before any operation.
void sink_set_min_free_space(struct sof_sink *sink, size_t min_free_space)
set of functions for setting audio parameters
void sink_reset_num_of_processed_bytes(struct sof_sink *sink)
sets counter of total number of bytes processed to zero