GNUnet 0.22.2
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 108 of file gnunet_gst_def.h.

◆ DEBUG_RECORD_PURE_OGG

#define DEBUG_RECORD_PURE_OGG   1

Definition at line 109 of file gnunet_gst_def.h.

◆ MAXLINE

#define MAXLINE   4096

How much data to read in one go.

Definition at line 115 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 164 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 170 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 135 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 140 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 147 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 152 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 158 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 164 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 170 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 177 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 184 of file gnunet_gst_def.h.

◆ SAMPLING_RATE

#define SAMPLING_RATE   48000

Definition at line 186 of file gnunet_gst_def.h.

Typedef Documentation

◆ GNUNET_gstData

Definition at line 87 of file gnunet_gst_def.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AUTO 
JACK 
ALSA 
FAKE 
TEST 

Definition at line 188 of file gnunet_gst_def.h.

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

◆ anonymous enum

anonymous enum
Enumerator
SOURCE 
SINK 

Definition at line 197 of file gnunet_gst_def.h.

198{
199 SOURCE,
200 SINK
201};
@ SOURCE
@ SINK

◆ anonymous enum

anonymous enum
Enumerator
ENCODER 
DECODER 

Definition at line 203 of file gnunet_gst_def.h.

204{
205 ENCODER,
206 DECODER
207};
@ ENCODER
@ DECODER

◆ anonymous enum

anonymous enum
Enumerator
FAIL 
OK 

Definition at line 209 of file gnunet_gst_def.h.

210{
211 FAIL,
212 OK
213};
@ OK
@ FAIL

◆ anonymous enum

anonymous enum
Enumerator
SPEAKER 
MICROPHONE 

Definition at line 215 of file gnunet_gst_def.h.

216{
217 SPEAKER,
219};
@ SPEAKER
@ MICROPHONE