sipxmedialib  Version 3.3
Classes | Macros | Typedefs | Enumerations | Functions
MpTypes.h File Reference
#include <utl/UtlDefs.h>
#include <os/OsIntTypes.h>
Include dependency graph for MpTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MpSpeechParams
 

Macros

#define _BYTE_ORDER_IS_LITTLE_ENDIAN
 
#define MP_AUDIO_SAMPLE_SIZE   16
 Size of audio sample in bits. More...
 
#define MP_INVALID_OUTPUT_DEVICE_HANDLE   -1
 
#define MP_INVALID_CONNECTION_ID   -1
 
#define MAX_AMPLITUDE   INT16_MAX
 Maximum possible amplitude. More...
 

Typedefs

typedef int STATUS
 
typedef void * MSG_Q_ID
 
typedef void * SEM_ID
 
typedef int16_t MpAudioSample
 
typedef int MpInputDeviceHandle
 
typedef int MpOutputDeviceHandle
 
typedef uint32_t MpFrameTime
 
typedef int MpConnectionID
 Flowgraph connection ID. More...
 
typedef uint16_t RtpSeq
 RTP sequence number. More...
 
typedef uint32_t RtpTimestamp
 RTP timestamp. More...
 
typedef uint32_t RtpSRC
 RTP SSRC or CSRC identifier. More...
 

Enumerations

enum  MpSpeechType {
  MP_SPEECH_UNKNOWN, MP_SPEECH_SILENT, MP_SPEECH_COMFORT_NOISE, MP_SPEECH_ACTIVE,
  MP_SPEECH_MUTED, MP_SPEECH_TONE
}
 Type of audio data. More...
 

Functions

MpSpeechType mixSpeechTypes (MpSpeechType src1, MpSpeechType src2)
 Determine type of speech after mixing two frames of given type. More...
 

Macro Definition Documentation

#define _BYTE_ORDER_IS_LITTLE_ENDIAN
#define MP_AUDIO_SAMPLE_SIZE   16

Size of audio sample in bits.

#define MP_INVALID_OUTPUT_DEVICE_HANDLE   -1
#define MP_INVALID_CONNECTION_ID   -1
#define MAX_AMPLITUDE   INT16_MAX

Maximum possible amplitude.

Typedef Documentation

typedef int STATUS
typedef void* MSG_Q_ID
typedef void* SEM_ID
typedef int16_t MpAudioSample

Audio sample (16 bit, signed, little-endian)

typedef int MpInputDeviceHandle

Logical device ID identifying device driver inside device manager.

typedef int MpOutputDeviceHandle

Logical device ID identifying device driver inside device manager.

typedef uint32_t MpFrameTime

Time of frame begin relative to device manager startup (in milliseconds).

typedef int MpConnectionID

Flowgraph connection ID.

typedef uint16_t RtpSeq

RTP sequence number.

typedef uint32_t RtpTimestamp

RTP timestamp.

typedef uint32_t RtpSRC

RTP SSRC or CSRC identifier.

Enumeration Type Documentation

Type of audio data.

Enumerator
MP_SPEECH_UNKNOWN 

is yet undetermined

MP_SPEECH_SILENT 

found to contain no speech

MP_SPEECH_COMFORT_NOISE 

to be replaced by comfort noise

MP_SPEECH_ACTIVE 

found to contain speech

MP_SPEECH_MUTED 

may contain speech, but must be muted

MP_SPEECH_TONE 

filled with active (not silent) tone data

Function Documentation

MpSpeechType mixSpeechTypes ( MpSpeechType  src1,
MpSpeechType  src2 
)

Determine type of speech after mixing two frames of given type.