Paraslash Audio Streaming | |
About News Download Documentation Development |
Describes a data sink for audio streams. More...
#include <write.h>
Data Fields | |
void(* | pre_monitor )(struct sched *s, void *context) |
Ask the scheduler to check whether data can be written. More... | |
int(* | post_monitor )(struct sched *s, void *context) |
Write audio data. More... | |
void(* | close )(struct writer_node *) |
Close one instance of the writer. More... | |
btr_command_handler | execute |
The callback handler. More... | |
Describes a data sink for audio streams.
A paraslash writer obtains data via the buffer tree mechanism from its parent node. It consumes data without producing output on its own.
This structure contains the methods which have to be implemented by each writer.
void(* pre_monitor) (struct sched *s, void *context) |
Ask the scheduler to check whether data can be written.
Referenced by register_writer_node().
int(* post_monitor) (struct sched *s, void *context) |
Write audio data.
Referenced by register_writer_node().
void(* close) (struct writer_node *) |
Close one instance of the writer.
This function is assumed to succeed.
btr_command_handler execute |
The callback handler.
Each writer may provide an ->execute callback which can be used for inter-node communication.
Referenced by register_writer_node().