le_audio_common.h File Reference

#include "legato.h"

Go to the source code of this file.

Macros

#define LE_AUDIO_DTMF_MAX_LEN   100
 
#define LE_AUDIO_DTMF_MAX_BYTES   101
 
#define LE_AUDIO_NO_FD   -1
 
#define LE_AUDIO_GAIN_NAME_MAX_LEN   100
 
#define LE_AUDIO_GAIN_NAME_MAX_BYTES   101
 

Typedefs

typedef struct le_audio_Stream * le_audio_StreamRef_t
 
typedef struct le_audio_Connector * le_audio_ConnectorRef_t
 
typedef struct le_audio_MediaHandler * le_audio_MediaHandlerRef_t
 
typedef struct le_audio_DtmfDetectorHandler * le_audio_DtmfDetectorHandlerRef_t
 
typedef void(* le_audio_MediaHandlerFunc_t) (le_audio_StreamRef_t streamRef, le_audio_MediaEvent_t event, void *contextPtr)
 
typedef void(* le_audio_DtmfDetectorHandlerFunc_t) (le_audio_StreamRef_t streamRef, char dtmf, void *contextPtr)
 

Enumerations

enum  le_audio_MediaEvent_t { LE_AUDIO_MEDIA_ENDED = 0, LE_AUDIO_MEDIA_NO_MORE_SAMPLES = 1, LE_AUDIO_MEDIA_ERROR = 2, LE_AUDIO_MEDIA_MAX = 3 }
 
enum  le_audio_Companding_t { LE_AUDIO_COMPANDING_ALAW = 0, LE_AUDIO_COMPANDING_ULAW = 1, LE_AUDIO_COMPANDING_NONE = 2 }
 
enum  le_audio_I2SChannel_t {
  LE_AUDIO_I2S_LEFT = 0, LE_AUDIO_I2S_RIGHT = 1, LE_AUDIO_I2S_MONO = 2, LE_AUDIO_I2S_STEREO = 3,
  LE_AUDIO_I2S_REVERSE = 4
}
 
enum  le_audio_Format_t { LE_AUDIO_WAVE = 0, LE_AUDIO_AMR = 1, LE_AUDIO_FORMAT_MAX = 2 }
 
enum  le_audio_AmrMode_t {
  LE_AUDIO_AMR_NONE = 0, LE_AUDIO_AMR_NB_4_75_KBPS = 1, LE_AUDIO_AMR_NB_5_15_KBPS = 2, LE_AUDIO_AMR_NB_5_9_KBPS = 3,
  LE_AUDIO_AMR_NB_6_7_KBPS = 4, LE_AUDIO_AMR_NB_7_4_KBPS = 5, LE_AUDIO_AMR_NB_7_95_KBPS = 6, LE_AUDIO_AMR_NB_10_2_KBPS = 7,
  LE_AUDIO_AMR_NB_12_2_KBPS = 8, LE_AUDIO_AMR_WB_6_6_KBPS = 9, LE_AUDIO_AMR_WB_8_85_KBPS = 10, LE_AUDIO_AMR_WB_12_65_KBPS = 11,
  LE_AUDIO_AMR_WB_14_25_KBPS = 12, LE_AUDIO_AMR_WB_15_85_KBPS = 13, LE_AUDIO_AMR_WB_18_25_KBPS = 14, LE_AUDIO_AMR_WB_19_85_KBPS = 15,
  LE_AUDIO_AMR_WB_23_05_KBPS = 16, LE_AUDIO_AMR_WB_23_85_KBPS = 17
}
 

Detailed Description

Type definitions for le_audio.