BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJMEDIA Reference

Compile time configurations

Compile time configurations. More...

Macros

#define PJMEDIA_AUD_DEV_INFO_NAME_LEN   64
 
#define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO   0
 
#define PJMEDIA_AUDIO_DEV_HAS_OPENSL   0
 
#define PJMEDIA_AUDIO_DEV_HAS_ANDROID_JNI   PJ_ANDROID
 
#define PJMEDIA_AUDIO_DEV_HAS_BB10   0
 
#define PJMEDIA_AUDIO_DEV_HAS_ALSA   0
 
#define PJMEDIA_AUDIO_DEV_HAS_NULL_AUDIO   0
 
#define PJMEDIA_AUDIO_DEV_HAS_COREAUDIO   0
 
#define PJMEDIA_AUDIO_DEV_HAS_WMME   1
 
#define PJMEDIA_AUDIO_DEV_HAS_WASAPI   0
 
#define PJMEDIA_AUDIO_DEV_HAS_BDIMAD   0
 
#define PJMEDIA_AUDIO_DEV_HAS_SYMB_APS   0
 
#define PJMEDIA_AUDIO_DEV_SYMB_APS_DETECTS_CODEC   1
 
#define PJMEDIA_AUDIO_DEV_HAS_SYMB_VAS   0
 
#define PJMEDIA_AUDIO_DEV_SYMB_VAS_VERSION   1
 
#define PJMEDIA_AUDIO_DEV_HAS_SYMB_MDA   PJ_SYMBIAN
 
#define PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START   1
 
#define PJMEDIA_AUDIO_DEV_HAS_LEGACY_DEVICE   0
 

Detailed Description

Macro Definition Documentation

◆ PJMEDIA_AUD_DEV_INFO_NAME_LEN

#define PJMEDIA_AUD_DEV_INFO_NAME_LEN   64

This setting controls the buffer length of audio device name.

Default: 128 for Windows platforms, 64 for others

◆ PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO

#define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO   0

This setting controls whether PortAudio support should be included.

By default it is disabled.

◆ PJMEDIA_AUDIO_DEV_HAS_OPENSL

#define PJMEDIA_AUDIO_DEV_HAS_OPENSL   0

This setting controls whether Android OpenSL audio support should be included.

◆ PJMEDIA_AUDIO_DEV_HAS_ANDROID_JNI

#define PJMEDIA_AUDIO_DEV_HAS_ANDROID_JNI   PJ_ANDROID

This setting controls whether Android JNI audio support should be included.

◆ PJMEDIA_AUDIO_DEV_HAS_BB10

#define PJMEDIA_AUDIO_DEV_HAS_BB10   0

This setting controls whether BlackBerry 10 (BB10) audio support should be included.

◆ PJMEDIA_AUDIO_DEV_HAS_ALSA

#define PJMEDIA_AUDIO_DEV_HAS_ALSA   0

This setting controls whether native ALSA support should be included.

◆ PJMEDIA_AUDIO_DEV_HAS_NULL_AUDIO

#define PJMEDIA_AUDIO_DEV_HAS_NULL_AUDIO   0

This setting controls whether null audio support should be included.

◆ PJMEDIA_AUDIO_DEV_HAS_COREAUDIO

#define PJMEDIA_AUDIO_DEV_HAS_COREAUDIO   0

This setting controls whether coreaudio support should be included.

◆ PJMEDIA_AUDIO_DEV_HAS_WMME

#define PJMEDIA_AUDIO_DEV_HAS_WMME   1

This setting controls whether WMME support should be included.

◆ PJMEDIA_AUDIO_DEV_HAS_WASAPI

#define PJMEDIA_AUDIO_DEV_HAS_WASAPI   0

This setting controls whether Windows Audio Session API (WASAPI) support should be included.

◆ PJMEDIA_AUDIO_DEV_HAS_BDIMAD

#define PJMEDIA_AUDIO_DEV_HAS_BDIMAD   0

This setting controls whether BDIMAD support should be included.

◆ PJMEDIA_AUDIO_DEV_HAS_SYMB_APS

#define PJMEDIA_AUDIO_DEV_HAS_SYMB_APS   0

This setting controls whether Symbian APS support should be included.

◆ PJMEDIA_AUDIO_DEV_SYMB_APS_DETECTS_CODEC

#define PJMEDIA_AUDIO_DEV_SYMB_APS_DETECTS_CODEC   1

This setting controls whether Symbian APS should perform codec detection in its factory initalization. Note that codec detection may take few seconds and detecting more codecs will take more time. Possible values are:

  • 0: no codec detection, all APS codec (AMR-NB, G.711, G.729, and iLBC) will be assumed as supported.
  • 1: minimal codec detection, i.e: only detect for AMR-NB and G.711, (G.729 and iLBC are considered to be supported/unsupported when G.711 is supported/unsupported).
  • 2: full codec detection, i.e: detect AMR-NB, G.711, G.729, and iLBC.

Default: 1 (minimal codec detection)

◆ PJMEDIA_AUDIO_DEV_HAS_SYMB_VAS

#define PJMEDIA_AUDIO_DEV_HAS_SYMB_VAS   0

This setting controls whether Symbian VAS support should be included.

◆ PJMEDIA_AUDIO_DEV_SYMB_VAS_VERSION

#define PJMEDIA_AUDIO_DEV_SYMB_VAS_VERSION   1

This setting controls Symbian VAS version to be used. Currently, valid values are only 1 (for VAS 1.0) and 2 (for VAS 2.0).

Default: 1 (VAS version 1.0)

◆ PJMEDIA_AUDIO_DEV_HAS_SYMB_MDA

#define PJMEDIA_AUDIO_DEV_HAS_SYMB_MDA   PJ_SYMBIAN

This setting controls whether Symbian audio (using built-in multimedia framework) support should be included.

◆ PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START

#define PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START   1

This setting controls whether the Symbian audio with built-in multimedia framework backend should be started synchronously. Note that synchronous start will block the application/UI, e.g: about 40ms for each direction on N95. While asynchronous start may cause invalid value (always zero) returned in input/output volume query, if the query is performed when the internal start procedure is not completely finished.

Default: 1 (yes)

◆ PJMEDIA_AUDIO_DEV_HAS_LEGACY_DEVICE

#define PJMEDIA_AUDIO_DEV_HAS_LEGACY_DEVICE   0

This setting controls whether the Audio Device API should support device implementation that is based on the old sound device API (sound.h).

Enable this API if:

  • you have implemented your own sound device using the old sound device API (sound.h), and
  • you wish to be able to use your sound device implementation using the new Audio Device API.

Please see http://trac.pjsip.org/repos/wiki/Audio_Dev_API for more info.

 


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