Paraslash Audio Streaming | |
About News Download Documentation Development |
Describes a possible data source for audio streams. More...
#include <recv.h>
Data Fields | |
int(* | open )(struct receiver_node *rn) |
Open one instance of the receiver. More... | |
void(* | close )(struct receiver_node *rn) |
Close this instance of the receiver. More... | |
void(* | pre_monitor )(struct sched *s, void *context) |
Ask the scheduler to monitor receive fds. More... | |
int(* | post_monitor )(struct sched *s, void *context) |
Receive data and make it available to consumers. More... | |
btr_command_handler | execute |
Answer a buffer tree query. More... | |
Describes a possible data source for audio streams.
A paraslash receiver is a modular piece of software which is capable of receiving an audio data stream from a data source. Received audio data is fed to consumers through the buffer tree mechanism.
This structure contains the methods which have to be implemented by each receiver.
int(* open) (struct receiver_node *rn) |
Open one instance of the receiver.
This should allocate the output buffer of the given receiver node and prepare it for retrieving the audio stream according to the configuration stored in rn->lpr.
void(* close) (struct receiver_node *rn) |
Close this instance of the receiver.
It should free all resources associated with given receiver node that were allocated during the corresponding open call.
void(* pre_monitor) (struct sched *s, void *context) |
Ask the scheduler to monitor receive fds.
int(* post_monitor) (struct sched *s, void *context) |
Receive data and make it available to consumers.
btr_command_handler execute |
Answer a buffer tree query.
This optional function pointer allows for inter node communication of the buffer tree nodes. See btr_command_handler for details.