sipxmedialib  Version 3.3
Classes | Public Types | Protected Member Functions | Private Member Functions | Friends | List of all members
MpAndroidAudioTrack Class Reference

Audio input driver for Android OS. More...

#include <MpAndroidAudioTrack.h>

Inheritance diagram for MpAndroidAudioTrack:
Inheritance graph
[legend]

Classes

class  Buffer
 

Public Types

enum  event_type {
  EVENT_MORE_DATA = 0, EVENT_UNDERRUN = 1, EVENT_LOOP_END = 2, EVENT_MARKER = 3,
  EVENT_NEW_POS = 4, EVENT_BUFFER_END = 5
}
 

Protected Member Functions

 MpAndroidAudioTrack ()
 Disallow default constructor. More...
 

Private Member Functions

 MpAndroidAudioTrack (const MpAndroidAudioTrack &rMpAndroidAudioTrack)
 Copy constructor (not implemented for this class) More...
 
MpAndroidAudioTrackoperator= (const MpAndroidAudioTrack &rhs)
 Assignment operator (not implemented for this class) More...
 

Friends

MpAndroidAudioTrackMpAndroidAudioBindingInterface::createAudioTrack (int streamType, uint32_t sampleRate, int format, int channels, int frameCount, uint32_t flags, sipXcallback_t cbf, void *user, int notificationFrames) const
 

Creators

virtual ~MpAndroidAudioTrack ()
 Destructor. More...
 

Manipulators

virtual void start ()
 
virtual void stop ()
 

Accessors

virtual int initCheck () const
 
virtual uint32_t getSampleRate ()
 
virtual int frameSize () const
 
virtual uint32_t frameCount () const
 
virtual uint32_t latency () const
 
virtual void setVolume (float left, float right)
 
virtual void dumpAudioTrack (const char *label)
 

Detailed Description

Audio input driver for Android OS.

See also
MpInputDeviceDriver

Member Enumeration Documentation

enum event_type
Enumerator
EVENT_MORE_DATA 
EVENT_UNDERRUN 
EVENT_LOOP_END 
EVENT_MARKER 
EVENT_NEW_POS 
EVENT_BUFFER_END 

Constructor & Destructor Documentation

~MpAndroidAudioTrack ( )
virtual

Destructor.

MpAndroidAudioTrack ( )
protected

Disallow default constructor.

MpAndroidAudioTrack ( const MpAndroidAudioTrack rMpAndroidAudioTrack)
private

Copy constructor (not implemented for this class)

Member Function Documentation

void start ( )
virtual

Reimplemented in MP_ANDROID_AUDIO_TRACK.

void stop ( )
virtual

Reimplemented in MP_ANDROID_AUDIO_TRACK.

int initCheck ( ) const
virtual

Reimplemented in MP_ANDROID_AUDIO_TRACK.

uint32_t getSampleRate ( )
virtual

Reimplemented in MP_ANDROID_AUDIO_TRACK.

int frameSize ( ) const
virtual

Reimplemented in MP_ANDROID_AUDIO_TRACK.

uint32_t frameCount ( ) const
virtual

Reimplemented in MP_ANDROID_AUDIO_TRACK.

uint32_t latency ( ) const
virtual

Reimplemented in MP_ANDROID_AUDIO_TRACK.

void setVolume ( float  left,
float  right 
)
virtual

Reimplemented in MP_ANDROID_AUDIO_TRACK.

void dumpAudioTrack ( const char *  label)
virtual

Reimplemented in MP_ANDROID_AUDIO_TRACK.

MpAndroidAudioTrack& operator= ( const MpAndroidAudioTrack rhs)
private

Assignment operator (not implemented for this class)

Friends And Related Function Documentation

MpAndroidAudioTrack* MpAndroidAudioBindingInterface::createAudioTrack ( int  streamType,
uint32_t  sampleRate,
int  format,
int  channels,
int  frameCount,
uint32_t  flags,
sipXcallback_t  cbf,
void *  user,
int  notificationFrames 
) const
friend