mediastreamer2 5.2.0
Modules | Data Structures | Macros | Typedefs | Enumerations
Sound Card API - Manage audio capture/play filters

Sound Card API to manage audio capture/play filters. More...

Collaboration diagram for Sound Card API - Manage audio capture/play filters:

Modules

 Sound Card Manager API
 
 Sound Card Filter API
 

Data Structures

struct  _MSSndCardManager
 
struct  _MSSndCardDesc
 
struct  _MSSndCard
 

Macros

#define MS_SND_CARD_CAP_DISABLED   (0)
 
#define MS_SND_CARD_CAP_CAPTURE   (1)
 
#define MS_SND_CARD_CAP_PLAYBACK   (1<<1)
 
#define MS_SND_CARD_CAP_BUILTIN_ECHO_CANCELLER   (1<<2)
 
#define MS_SND_CARD_CAP_IS_SLOW   (1<<3)
 

Typedefs

typedef struct _MSSndCardManager MSSndCardManager
 
typedef enum _MSSndCardMixerElem MSSndCardMixerElem
 
typedef enum _MSSndCardCapture MSSndCardCapture
 
typedef enum _MSSndCardControlElem MSSndCardControlElem
 
typedef void(* MSSndCardDetectFunc) (MSSndCardManager *obj)
 
typedef bool_t(* MSSndCardReloadRequestedFunc) (MSSndCardManager *obj)
 
typedef void(* MSSndCardInitFunc) (struct _MSSndCard *obj)
 
typedef void(* MSSndCardUninitFunc) (struct _MSSndCard *obj)
 
typedef void(* MSSndCardSetLevelFunc) (struct _MSSndCard *obj, MSSndCardMixerElem e, int percent)
 
typedef void(* MSSndCardSetCaptureFunc) (struct _MSSndCard *obj, MSSndCardCapture e)
 
typedef int(* MSSndCardGetLevelFunc) (struct _MSSndCard *obj, MSSndCardMixerElem e)
 
typedef int(* MSSndCardSetControlFunc) (struct _MSSndCard *obj, MSSndCardControlElem e, int val)
 
typedef int(* MSSndCardGetControlFunc) (struct _MSSndCard *obj, MSSndCardControlElem e)
 
typedef struct _MSFilter *(* MSSndCardCreateReaderFunc) (struct _MSSndCard *obj)
 
typedef struct _MSFilter *(* MSSndCardCreateWriterFunc) (struct _MSSndCard *obj)
 
typedef struct _MSSndCard *(* MSSndCardDuplicateFunc) (struct _MSSndCard *obj)
 
typedef void(* MSSndCardSetUsageHintFunc) (struct _MSSndCard *obj, bool_t is_going_to_be_used)
 
typedef void(* MSSndCardUnloadFunc) (MSSndCardManager *obj)
 
typedef void(* MSSndCardAudioSessionFunc) (struct _MSSndCard *obj, bool_t actived)
 
typedef void(* MSSndCardCallKitFunc) (struct _MSSndCard *obj, bool_t enabled)
 
typedef void(* MSSndCardAudioRouteFunc) (struct _MSSndCard *obj)
 
typedef void(* MSSndCardConfigureFunc) (struct _MSSndCard *obj)
 
typedef struct _MSSndCardDesc MSSndCardDesc
 
typedef struct _MSSndCard MSSndCard
 
typedef enum _MSSndCardStreamType MSSndCardStreamType
 
typedef enum _MSSndCardDeviceType MSSndCardDeviceType
 

Enumerations

enum  _MSSndCardMixerElem {
  MS_SND_CARD_MASTER ,
  MS_SND_CARD_PLAYBACK ,
  MS_SND_CARD_CAPTURE
}
 
enum  _MSSndCardCapture {
  MS_SND_CARD_MIC ,
  MS_SND_CARD_LINE
}
 
enum  _MSSndCardControlElem {
  MS_SND_CARD_MASTER_MUTE ,
  MS_SND_CARD_PLAYBACK_MUTE ,
  MS_SND_CARD_CAPTURE_MUTE
}
 
enum  _MSSndCardStreamType {
  MS_SND_CARD_STREAM_VOICE ,
  MS_SND_CARD_STREAM_RING ,
  MS_SND_CARD_STREAM_MEDIA ,
  MS_SND_CARD_STREAM_DTMF
}
 
enum  _MSSndCardDeviceType {
  MS_SND_CARD_DEVICE_TYPE_TELEPHONY ,
  MS_SND_CARD_DEVICE_TYPE_AUX_LINE ,
  MS_SND_CARD_DEVICE_TYPE_GENERIC_USB ,
  MS_SND_CARD_DEVICE_TYPE_HEADSET ,
  MS_SND_CARD_DEVICE_TYPE_MICROPHONE ,
  MS_SND_CARD_DEVICE_TYPE_EARPIECE ,
  MS_SND_CARD_DEVICE_TYPE_HEADPHONES ,
  MS_SND_CARD_DEVICE_TYPE_SPEAKER ,
  MS_SND_CARD_DEVICE_TYPE_BLUETOOTH ,
  MS_SND_CARD_DEVICE_TYPE_BLUETOOTH_A2DP ,
  MS_SND_CARD_DEVICE_TYPE_UNKNOWN ,
  MS_SND_CARD_DEVICE_TYPE_HEARING_AID
}
 

Detailed Description

Sound Card API to manage audio capture/play filters.

Macro Definition Documentation

◆ MS_SND_CARD_CAP_BUILTIN_ECHO_CANCELLER

#define MS_SND_CARD_CAP_BUILTIN_ECHO_CANCELLER   (1<<2)

This sound card has built-in echo cancellation

◆ MS_SND_CARD_CAP_CAPTURE

#define MS_SND_CARD_CAP_CAPTURE   (1)

This sound card can capture sound

◆ MS_SND_CARD_CAP_DISABLED

#define MS_SND_CARD_CAP_DISABLED   (0)

This soundcard is disabled.

◆ MS_SND_CARD_CAP_IS_SLOW

#define MS_SND_CARD_CAP_IS_SLOW   (1<<3)

This sound card is very slow to start

◆ MS_SND_CARD_CAP_PLAYBACK

#define MS_SND_CARD_CAP_PLAYBACK   (1<<1)

This sound card can playback sound

Typedef Documentation

◆ MSSndCard

Structure for sound card object.

◆ MSSndCardCapture

Structure for sound card capture source values.

◆ MSSndCardControlElem

Structure for sound card mixer values.

◆ MSSndCardDesc

Structure for sound card description object.

◆ MSSndCardManager

Structure for sound card manager object.

◆ MSSndCardMixerElem

Structure for sound card mixer values.

◆ MSSndCardStreamType

typedef enum _MSSndCardStreamType MSSndCardStreamType

Structure for sound card stream type.