GNUnet  0.10.x
Data Structures | Macros | Typedefs | Enumerations
gnunet_gst_def.h File Reference

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>
Include dependency graph for gnunet_gst_def.h:
This graph shows which files directly or indirectly include this file:

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 }
 

Detailed Description

FIXME.

Author
Hark

Definition in file gnunet_gst_def.h.

Macro Definition Documentation

◆ DEBUG_READ_PURE_OGG

#define DEBUG_READ_PURE_OGG   1

Definition at line 110 of file gnunet_gst_def.h.

◆ DEBUG_RECORD_PURE_OGG

#define DEBUG_RECORD_PURE_OGG   1

Definition at line 111 of file gnunet_gst_def.h.

◆ MAXLINE

#define MAXLINE   4096

How much data to read in one go.

Definition at line 117 of file gnunet_gst_def.h.

◆ BUFFER_TIME [1/2]

#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 166 of file gnunet_gst_def.h.

◆ LATENCY_TIME [1/2]

#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 172 of file gnunet_gst_def.h.

◆ OPUS_CHANNELS

#define OPUS_CHANNELS   1

Number of channels.

Must be one of the following (from libopusenc documentation): 1, 2

Definition at line 137 of file gnunet_gst_def.h.

◆ MAX_PAYLOAD_SIZE

#define MAX_PAYLOAD_SIZE   (1024 / OPUS_CHANNELS)

Maximal size of a single opus packet.

Definition at line 142 of file gnunet_gst_def.h.

◆ OPUS_FRAME_SIZE

#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 149 of file gnunet_gst_def.h.

◆ PACKET_LOSS_PERCENTAGE

#define PACKET_LOSS_PERCENTAGE   1

Expected packet loss to prepare for, in percents.

Definition at line 154 of file gnunet_gst_def.h.

◆ INBAND_FEC_MODE

#define INBAND_FEC_MODE   1

Set to 1 to enable forward error correction.

Set to 0 to disable.

Definition at line 160 of file gnunet_gst_def.h.

◆ BUFFER_TIME [2/2]

#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 166 of file gnunet_gst_def.h.

◆ LATENCY_TIME [2/2]

#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 172 of file gnunet_gst_def.h.

◆ OGG_MAX_DELAY

#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 179 of file gnunet_gst_def.h.

◆ OGG_MAX_PAGE_DELAY

#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 186 of file gnunet_gst_def.h.

◆ SAMPLING_RATE

#define SAMPLING_RATE   48000

Definition at line 188 of file gnunet_gst_def.h.

Typedef Documentation

◆ GNUNET_gstData

Definition at line 88 of file gnunet_gst_def.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AUTO 
JACK 
ALSA 
FAKE 
TEST 

Definition at line 190 of file gnunet_gst_def.h.

190  {
191  AUTO,
192  JACK,
193  ALSA,
194  FAKE,
195  TEST
196 };

◆ anonymous enum

anonymous enum
Enumerator
SOURCE 
SINK 

Definition at line 198 of file gnunet_gst_def.h.

198  {
199  SOURCE,
200  SINK
201 };

◆ anonymous enum

anonymous enum
Enumerator
ENCODER 
DECODER 

Definition at line 203 of file gnunet_gst_def.h.

203  {
204  ENCODER,
205  DECODER
206 };

◆ anonymous enum

anonymous enum
Enumerator
FAIL 
OK 

Definition at line 208 of file gnunet_gst_def.h.

208  {
209  FAIL,
210  OK
211 };

◆ anonymous enum

anonymous enum
Enumerator
SPEAKER 
MICROPHONE 

Definition at line 213 of file gnunet_gst_def.h.

213  {
214  SPEAKER,
215  MICROPHONE
216 };