FIXME. More...
Go to the source code of this file.
Functions | |
void | dump_buffer (unsigned n, const unsigned char *buf) |
void | gg_load_configuration (GNUNET_gstData *d) |
static void | write_data (const char *ptr, size_t msg_size) |
GstFlowReturn | on_appsink_new_sample (GstElement *element, GNUNET_gstData *d) |
void | pl_graph (GstElement *pipeline) |
gboolean | gnunet_gst_bus_call (GstBus *bus, GstMessage *msg, gpointer data) |
void | state_changed_cb (GstBus *bus, GstMessage *msg, GNUNET_gstData *d) |
static void | application_cb (GstBus *bus, GstMessage *msg, GNUNET_gstData *data) |
static void | error_cb (GstBus *bus, GstMessage *msg, GNUNET_gstData *data) |
static void | eos_cb (GstBus *bus, GstMessage *msg, GNUNET_gstData *data) |
void | gg_setup_gst_bus (GNUNET_gstData *d) |
int | feed_buffer_to_gst (const char *audio, size_t b_len, GNUNET_gstData *d) |
GstElement * | gst_element_factory_make_debug (gchar *factoryname, gchar *name) |
debug making elements More... | |
void | lf (char *msg) |
static void | autoaudiosink_child_added (GstChildProxy *child_proxy, GObject *object, gchar *name, gpointer user_data) |
static void | autoaudiosource_child_added (GstChildProxy *child_proxy, GObject *object, gchar *name, gpointer user_data) |
GstElement * | get_pipeline (GstElement *element) |
static void | decoder_ogg_pad_added (GstElement *element, GstPad *pad, gpointer data) |
int | gnunet_read (GNUNET_gstData *d) |
static int | stdin_receiver (void *cls, const struct GNUNET_MessageHeader *msg) |
Message callback. More... | |
GstBin * | get_app (GNUNET_gstData *d, int type) |
GstBin * | get_coder (GNUNET_gstData *d, int type) |
GstBin * | get_audiobin (GNUNET_gstData *d, int type) |
Variables | |
static struct GNUNET_CONFIGURATION_Handle * | cfg |
Our configuration. More... | |
FIXME.
Definition in file gnunet_gst.c.
void dump_buffer | ( | unsigned | n, |
const unsigned char * | buf | ||
) |
Definition at line 35 of file gnunet_gst.c.
Referenced by stdin_receiver().
void gg_load_configuration | ( | GNUNET_gstData * | d | ) |
Definition at line 71 of file gnunet_gst.c.
References ALSA, AUTO, cfg, d, FAKE, GNUNET_CONFIGURATION_create(), GNUNET_CONFIGURATION_get_value_string(), GNUNET_CONFIGURATION_get_value_yesno(), GNUNET_CONFIGURATION_load(), GNUNET_YES, JACK, and TEST.
Referenced by main().
|
static |
Definition at line 149 of file gnunet_gst.c.
References GNUNET_ERROR_TYPE_ERROR, GNUNET_log_strerror, and ret.
Referenced by on_appsink_new_sample().
GstFlowReturn on_appsink_new_sample | ( | GstElement * | element, |
GNUNET_gstData * | d | ||
) |
Definition at line 170 of file gnunet_gst.c.
References d, GNUNET_memcpy, AudioMessage::header, map, GNUNET_MessageHeader::size, GNUNET_CONTAINER_MultiPeerMap::size, and write_data().
Referenced by get_app().
void pl_graph | ( | GstElement * | pipeline | ) |
Definition at line 233 of file gnunet_gst.c.
References pipeline.
Referenced by main(), and state_changed_cb().
gboolean gnunet_gst_bus_call | ( | GstBus * | bus, |
GstMessage * | msg, | ||
gpointer | data | ||
) |
Definition at line 252 of file gnunet_gst.c.
References find_typedefs::debug, GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_ERROR_TYPE_INFO, GNUNET_log, and msg.
void state_changed_cb | ( | GstBus * | bus, |
GstMessage * | msg, | ||
GNUNET_gstData * | d | ||
) |
Definition at line 291 of file gnunet_gst.c.
References d, msg, and pl_graph().
Referenced by gg_setup_gst_bus().
|
static |
Definition at line 331 of file gnunet_gst.c.
Referenced by gg_setup_gst_bus().
|
static |
Definition at line 339 of file gnunet_gst.c.
Referenced by gg_setup_gst_bus().
|
static |
Definition at line 347 of file gnunet_gst.c.
Referenced by gg_setup_gst_bus().
void gg_setup_gst_bus | ( | GNUNET_gstData * | d | ) |
Definition at line 355 of file gnunet_gst.c.
References application_cb(), d, eos_cb(), error_cb(), and state_changed_cb().
Referenced by main().
int feed_buffer_to_gst | ( | const char * | audio, |
size_t | b_len, | ||
GNUNET_gstData * | d | ||
) |
Definition at line 496 of file gnunet_gst.c.
References d, GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_INFO, GNUNET_ERROR_TYPE_WARNING, GNUNET_log, GNUNET_OK, and GNUNET_SYSERR.
Referenced by gnunet_read(), and stdin_receiver().
GstElement * gst_element_factory_make_debug | ( | gchar * | factoryname, |
gchar * | name | ||
) |
debug making elements
Definition at line 555 of file gnunet_gst.c.
References gst_element_factory_make, and name.
void lf | ( | char * | msg | ) |
Definition at line 587 of file gnunet_gst.c.
References msg.
Referenced by get_audiobin(), and handle_helper_local_finished().
|
static |
Definition at line 598 of file gnunet_gst.c.
References BUFFER_TIME, and LATENCY_TIME.
Referenced by get_audiobin().
|
static |
Definition at line 615 of file gnunet_gst.c.
References BUFFER_TIME, and LATENCY_TIME.
Referenced by get_audiobin().
GstElement * get_pipeline | ( | GstElement * | element | ) |
|
static |
Definition at line 636 of file gnunet_gst.c.
Referenced by get_coder().
int gnunet_read | ( | GNUNET_gstData * | d | ) |
Definition at line 655 of file gnunet_gst.c.
References _, d, FAIL, feed_buffer_to_gst(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_log, GNUNET_MST_from_buffer(), GNUNET_NO, MAXLINE, and ret.
Referenced by main().
|
static |
Message callback.
msg | message we received. |
Definition at line 703 of file gnunet_gst.c.
References dump_buffer(), feed_buffer_to_gst(), GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO, GNUNET_OK, AudioMessage::header, msg, GNUNET_MessageHeader::size, and GNUNET_MessageHeader::type.
Referenced by get_app().
GstBin * get_app | ( | GNUNET_gstData * | d, |
int | type | ||
) |
Definition at line 732 of file gnunet_gst.c.
References d, GNUNET_assert, GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_log_setup(), GNUNET_malloc, GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO, GNUNET_MST_create(), GNUNET_OK, gst_element_factory_make, AudioMessage::header, on_appsink_new_sample(), SINK, SOURCE, stdin_receiver(), type, and GNUNET_MessageHeader::type.
Referenced by main().
GstBin * get_coder | ( | GNUNET_gstData * | d, |
int | type | ||
) |
Definition at line 816 of file gnunet_gst.c.
References d, decoder, DECODER, decoder_ogg_pad_added(), demuxer, ENCODER, gst_element_factory_make, INBAND_FEC_MODE, MAX_PAYLOAD_SIZE, OGG_MAX_DELAY, OGG_MAX_PAGE_DELAY, OPUS_FRAME_SIZE, PACKET_LOSS_PERCENTAGE, SAMPLING_RATE, and type.
Referenced by main().
GstBin * get_audiobin | ( | GNUNET_gstData * | d, |
int | type | ||
) |
Definition at line 950 of file gnunet_gst.c.
References ALSA, AUTO, autoaudiosink_child_added(), autoaudiosource_child_added(), BUFFER_TIME, conv, d, FAKE, filter, gst_element_factory_make, JACK, LATENCY_TIME, lf(), OPUS_CHANNELS, queue(), resampler, sink, SINK, source, TEST, and type.
Referenced by main().
|
static |
Our configuration.
Definition at line 31 of file gnunet_gst.c.
Referenced by gg_load_configuration().