pjsip logo pjsip.org
Open source SIP stack and media stack for presence, im/instant messaging, and multimedia communication
Loading

HOME

SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port

FAQ

Documentation

Licensing

Download

Development (Trac)

Projects using pjsip

Mailing List

Open Source Links


About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono
<bennylp@pjsip.org>


 

Home --> Documentations --> PJMEDIA Reference

pjmedia_aud_param Struct Reference
[Audio Device API Reference]

Data Fields

pjmedia_dir dir
pjmedia_aud_dev_index rec_id
pjmedia_aud_dev_index play_id
unsigned clock_rate
unsigned channel_count
unsigned samples_per_frame
unsigned bits_per_sample
unsigned flags
pjmedia_format ext_fmt
unsigned input_latency_ms
unsigned output_latency_ms
unsigned input_vol
unsigned output_vol
pjmedia_aud_dev_route input_route
pjmedia_aud_dev_route output_route
pj_bool_t ec_enabled
unsigned ec_tail_ms
pj_bool_t plc_enabled
pj_bool_t cng_enabled

Detailed Description

This structure specifies the parameters to open the audio stream.


Field Documentation

The audio direction. This setting is mandatory.

The audio recorder device ID. This setting is mandatory if the audio direction includes input/capture direction.

The audio playback device ID. This setting is mandatory if the audio direction includes output/playback direction.

Clock rate/sampling rate. This setting is mandatory.

Number of channels. This setting is mandatory.

Number of samples per frame. This setting is mandatory.

Number of bits per sample. This setting is mandatory.

This flags specifies which of the optional settings are valid in this structure. The flags is bitmask combination of pjmedia_aud_dev_cap.

Set the audio format. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_EXT_FORMAT is set in the flags.

Input latency, in milliseconds. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_INPUT_LATENCY is set in the flags.

Input latency, in milliseconds. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_OUTPUT_LATENCY is set in the flags.

Input volume setting, in percent. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_INPUT_VOLUME_SETTING is set in the flags.

Output volume setting, in percent. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING is set in the flags.

Set the audio input route. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_INPUT_ROUTE is set in the flags.

Set the audio output route. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_OUTPUT_ROUTE is set in the flags.

Enable/disable echo canceller, if the device supports it. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_EC is set in the flags.

Set echo canceller tail length in milliseconds, if the device supports it. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_EC_TAIL is set in the flags.

Enable/disable PLC. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_PLC is set in the flags.

Enable/disable CNG. This setting is optional, and will only be used if PJMEDIA_AUD_DEV_CAP_CNG is set in the flags.


The documentation for this struct was generated from the following file:

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.