sipxmedialib  Version 3.3
Public Types | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Friends | List of all members
MpAndroidAudioBindingInterface Class Reference

Audio wrapper interface driver for Android OS version spesific differences. More...

#include <MpAndroidAudioBindingInterface.h>

Inheritance diagram for MpAndroidAudioBindingInterface:
Inheritance graph
[legend]
Collaboration diagram for MpAndroidAudioBindingInterface:
Collaboration graph
[legend]

Public Types

enum  StreamType {
  DEFAULT =-1, VOICE_CALL = 0, SYSTEM = 1, RING = 2,
  MUSIC = 3, ALARM = 4, NOTIFICATION = 5, BLUETOOTH_SCO = 6,
  ENFORCED_AUDIBLE = 7, DTMF = 8, TTS = 9, NUM_STREAM_TYPES
}
 
typedef MpAndroidAudioBindingInterface *(* MpAndroidAudioBindingInterfaceCreator) ()
 

Static Public Attributes

static MpAndroidAudioBindingInterfaceCreator spGetAndroidAudioBinding = stubGetAndroidAudioBindingInterface
 

Protected Member Functions

 MpAndroidAudioBindingInterface ()
 Disallow default constructor. More...
 

Protected Attributes

OsStatus mStatus
 

Static Protected Attributes

static MpAndroidAudioBindingInterfacespMpAndroidAudioBindingInterface = NULL
 

Private Member Functions

 MpAndroidAudioBindingInterface (const MpAndroidAudioBindingInterface &rMpAndroidAudioBindingInterface)
 Copy constructor (not implemented for this class) More...
 
MpAndroidAudioBindingInterfaceoperator= (const MpAndroidAudioBindingInterface &rhs)
 Assignment operator (not implemented for this class) More...
 

Friends

MpAndroidAudioBindingInterfacestubGetAndroidAudioBindingInterface ()
 

Creators

virtual ~MpAndroidAudioBindingInterface ()
 Destructor. More...
 

Accessors

OsStatus getStatus () const
 Get the status of the construction and loading of the Android OS version specific libs. More...
 
virtual MpAndroidAudioTrackcreateAudioTrack (int streamType, uint32_t sampleRate, int format, int channels, int frameCount, uint32_t flags, sipXcallback_t cbf, void *user, int notificationFrames) const
 Abstract/stub method to get Android OS version specific implementation of AudioTrack. More...
 
virtual MpAndroidAudioRecordcreateAudioRecord () const
 Abstract/stub method to get Android OS version specific implementation of AudioRecord. More...
 
virtual int getOutputLatency (uint32_t &outputLatency, StreamType streamType) const
 Abstract/stub method to get Android OS version specific implementation to get output latency. More...
 
static OsStatus getVersionSpecificLibraryName (UtlString &sharedLibraryName)
 

Detailed Description

Audio wrapper interface driver for Android OS version spesific differences.

See also
MpInputDeviceDriver

Member Typedef Documentation

typedef MpAndroidAudioBindingInterface*(* MpAndroidAudioBindingInterfaceCreator) ()

Member Enumeration Documentation

enum StreamType
Enumerator
DEFAULT 
VOICE_CALL 
SYSTEM 
RING 
MUSIC 
ALARM 
NOTIFICATION 
BLUETOOTH_SCO 
ENFORCED_AUDIBLE 
DTMF 
TTS 
NUM_STREAM_TYPES 

Constructor & Destructor Documentation

Destructor.

Disallow default constructor.

MpAndroidAudioBindingInterface ( const MpAndroidAudioBindingInterface rMpAndroidAudioBindingInterface)
private

Copy constructor (not implemented for this class)

Member Function Documentation

OsStatus getStatus ( ) const

Get the status of the construction and loading of the Android OS version specific libs.

OsStatus getVersionSpecificLibraryName ( UtlString &  sharedLibraryName)
static
MpAndroidAudioTrack * createAudioTrack ( int  streamType,
uint32_t  sampleRate,
int  format,
int  channels,
int  frameCount,
uint32_t  flags,
sipXcallback_t  cbf,
void *  user,
int  notificationFrames 
) const
virtual

Abstract/stub method to get Android OS version specific implementation of AudioTrack.

Reimplemented in MP_ANDROID_AUDIO_BINDING_INTERFACE.

MpAndroidAudioRecord * createAudioRecord ( ) const
virtual

Abstract/stub method to get Android OS version specific implementation of AudioRecord.

Reimplemented in MP_ANDROID_AUDIO_BINDING_INTERFACE.

int getOutputLatency ( uint32_t &  outputLatency,
StreamType  streamType 
) const
virtual

Abstract/stub method to get Android OS version specific implementation to get output latency.

Reimplemented in MP_ANDROID_AUDIO_BINDING_INTERFACE.

Assignment operator (not implemented for this class)

Friends And Related Function Documentation

MpAndroidAudioBindingInterface* stubGetAndroidAudioBindingInterface ( )
friend

Member Data Documentation

MpAndroidAudioBindingInterface * spMpAndroidAudioBindingInterface = NULL
staticprotected
OsStatus mStatus
protected