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

◆ DEBUG_RECORD_PURE_OGG

#define DEBUG_RECORD_PURE_OGG   1

Definition at line 113 of file gnunet_gst_def.h.

◆ MAXLINE

#define MAXLINE   4096

How much data to read in one go.

Definition at line 119 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 168 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 174 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 139 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 144 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 151 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 156 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 162 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 168 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 174 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 181 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 188 of file gnunet_gst_def.h.

◆ SAMPLING_RATE

#define SAMPLING_RATE   48000

Definition at line 190 of file gnunet_gst_def.h.

Typedef Documentation

◆ GNUNET_gstData

Definition at line 90 of file gnunet_gst_def.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AUTO 
JACK 
ALSA 
FAKE 
TEST 

Definition at line 192 of file gnunet_gst_def.h.

192  {
193  AUTO,
194  JACK,
195  ALSA,
196  FAKE,
197  TEST
198 };

◆ anonymous enum

anonymous enum
Enumerator
SOURCE 
SINK 

Definition at line 200 of file gnunet_gst_def.h.

200  {
201  SOURCE,
202  SINK
203 };

◆ anonymous enum

anonymous enum
Enumerator
ENCODER 
DECODER 

Definition at line 205 of file gnunet_gst_def.h.

205  {
206  ENCODER,
207  DECODER
208 };

◆ anonymous enum

anonymous enum
Enumerator
FAIL 
OK 

Definition at line 210 of file gnunet_gst_def.h.

210  {
211  FAIL,
212  OK
213 };

◆ anonymous enum

anonymous enum
Enumerator
SPEAKER 
MICROPHONE 

Definition at line 215 of file gnunet_gst_def.h.

215  {
216  SPEAKER,
217  MICROPHONE
218 };