FIXME. More...
#include <getopt.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <regex.h>
#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_protocols.h"
#include "conversation.h"
#include "gnunet_constants.h"
#include "gnunet_core_service.h"
#include "gnunet_common.h"
#include <gst/gst.h>
#include <gst/audio/gstaudiobasesrc.h>
#include <gst/app/gstappsrc.h>
#include <glib.h>
#include <gst/app/gstappsink.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/types.h>
#include <fcntl.h>
#include <glib-2.0/glib/gprintf.h>
Go to the source code of this file.
Data Structures | |
struct | GNUNET_gstData |
Macros | |
#define | DEBUG_READ_PURE_OGG 1 |
#define | DEBUG_RECORD_PURE_OGG 1 |
#define | MAXLINE 4096 |
How much data to read in one go. More... | |
#define | BUFFER_TIME 1000 |
Max number of microseconds to buffer in audiosink. More... | |
#define | LATENCY_TIME 1000 |
Min number of microseconds to buffer in audiosink. More... | |
#define | OPUS_CHANNELS 1 |
Number of channels. More... | |
#define | MAX_PAYLOAD_SIZE (1024 / OPUS_CHANNELS) |
Maximal size of a single opus packet. More... | |
#define | OPUS_FRAME_SIZE 40 |
Size of a single frame fed to the encoder, in ms. More... | |
#define | PACKET_LOSS_PERCENTAGE 1 |
Expected packet loss to prepare for, in percents. More... | |
#define | INBAND_FEC_MODE 1 |
Set to 1 to enable forward error correction. More... | |
#define | BUFFER_TIME 1000 /* 1ms */ |
Max number of microseconds to buffer in audiosink. More... | |
#define | LATENCY_TIME 1000 /* 1ms */ |
Min number of microseconds to buffer in audiosink. More... | |
#define | OGG_MAX_DELAY 0 |
Maximum delay in multiplexing streams, in ns. More... | |
#define | OGG_MAX_PAGE_DELAY 0 |
Maximum delay for sending out a page, in ns. More... | |
#define | SAMPLING_RATE 48000 |
Typedefs | |
typedef struct GNUNET_gstData | GNUNET_gstData |
Enumerations | |
enum | { AUTO , JACK , ALSA , FAKE , TEST } |
enum | { SOURCE , SINK } |
enum | { ENCODER , DECODER } |
enum | { FAIL , OK } |
enum | { SPEAKER , MICROPHONE } |
FIXME.
Definition in file gnunet_gst_def.h.
#define DEBUG_READ_PURE_OGG 1 |
Definition at line 108 of file gnunet_gst_def.h.
#define DEBUG_RECORD_PURE_OGG 1 |
Definition at line 109 of file gnunet_gst_def.h.
#define MAXLINE 4096 |
How much data to read in one go.
Definition at line 115 of file gnunet_gst_def.h.
#define BUFFER_TIME 1000 |
Max number of microseconds to buffer in audiosink.
Max number of microseconds to buffer in audiosource.
Default is 1000
Default is 200000
Definition at line 164 of file gnunet_gst_def.h.
#define LATENCY_TIME 1000 |
Min number of microseconds to buffer in audiosink.
Min number of microseconds to buffer in audiosource.
Default is 1000
Default is 10000
Definition at line 170 of file gnunet_gst_def.h.
#define OPUS_CHANNELS 1 |
Number of channels.
Must be one of the following (from libopusenc documentation): 1, 2
Definition at line 135 of file gnunet_gst_def.h.
#define MAX_PAYLOAD_SIZE (1024 / OPUS_CHANNELS) |
Maximal size of a single opus packet.
Definition at line 140 of file gnunet_gst_def.h.
#define OPUS_FRAME_SIZE 40 |
Size of a single frame fed to the encoder, in ms.
Must be one of the following (from libopus documentation): 2.5, 5, 10, 20, 40 or 60
Definition at line 147 of file gnunet_gst_def.h.
#define PACKET_LOSS_PERCENTAGE 1 |
Expected packet loss to prepare for, in percents.
Definition at line 152 of file gnunet_gst_def.h.
#define INBAND_FEC_MODE 1 |
Set to 1 to enable forward error correction.
Set to 0 to disable.
Definition at line 158 of file gnunet_gst_def.h.
#define BUFFER_TIME 1000 /* 1ms */ |
Max number of microseconds to buffer in audiosink.
Max number of microseconds to buffer in audiosource.
Default is 1000
Default is 200000
Definition at line 164 of file gnunet_gst_def.h.
#define LATENCY_TIME 1000 /* 1ms */ |
Min number of microseconds to buffer in audiosink.
Min number of microseconds to buffer in audiosource.
Default is 1000
Default is 10000
Definition at line 170 of file gnunet_gst_def.h.
#define OGG_MAX_DELAY 0 |
Maximum delay in multiplexing streams, in ns.
Setting this to 0 forces page flushing, which decreases delay, but increases overhead.
Definition at line 177 of file gnunet_gst_def.h.
#define OGG_MAX_PAGE_DELAY 0 |
Maximum delay for sending out a page, in ns.
Setting this to 0 forces page flushing, which decreases delay, but increases overhead.
Definition at line 184 of file gnunet_gst_def.h.
#define SAMPLING_RATE 48000 |
Definition at line 186 of file gnunet_gst_def.h.
typedef struct GNUNET_gstData GNUNET_gstData |
Definition at line 87 of file gnunet_gst_def.h.
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
SOURCE | |
SINK |
Definition at line 197 of file gnunet_gst_def.h.
anonymous enum |
Enumerator | |
---|---|
ENCODER | |
DECODER |
Definition at line 203 of file gnunet_gst_def.h.
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
SPEAKER | |
MICROPHONE |
Definition at line 215 of file gnunet_gst_def.h.