sipxmedialib
Version 3.3
|
#include <MpAudioAbstract.h>
Public Member Functions | |
Creators | |
MpAudioAbstract (void) | |
Default Constructor. More... | |
MpAudioAbstract (MpAudioAbstract *audio) | |
Copy Constructor. More... | |
virtual | ~MpAudioAbstract () |
Destructor. More... | |
Non classfied | |
virtual size_t | getSamples (AudioSample *, size_t)=0 |
Returns number of samples actually read, 0 on error. More... | |
virtual size_t | readBytes (AudioByte *buff, size_t length) |
read length of bytes More... | |
virtual size_t | getBytesSize () |
get bytes size of the audio file More... | |
virtual int | getDecompressionType () |
get decompression type of the audio file More... | |
MpAudioAbstract related operations | |
MpAudioAbstract * | getPreviousAudio (void) |
get previous audio More... | |
void | setPreviousAudio (MpAudioAbstract *a) |
set previous audio to a More... | |
MpAudioAbstract * | getNextAudio (void) |
get next audio More... | |
void | setNextAudio (MpAudioAbstract *a) |
set next audio to a More... | |
Sample related functions | |
virtual void | setSamplingRate (long s) |
Set the sampling rate to s. More... | |
virtual void | setSamplingRateRecursive (long s) |
Set sampling rate recursively. More... | |
virtual void | minMaxSamplingRate (long *min, long *max, long *prefer) |
TODO: the meaning of this function, get the prefered Sampling rate. More... | |
virtual void | negotiateSamplingRate (void) |
negotiate the sampling rate More... | |
virtual long | getSamplingRate (void) |
Return the sampling rate. More... | |
Channel related functions | |
virtual void | setChannels (int ch) |
Set channel to ch. More... | |
virtual void | setChannelsRecursive (int s) |
Set channel recusively. More... | |
virtual void | minMaxChannels (int *min, int *max, int *preferred) |
Get prefered channel. More... | |
virtual void | negotiateChannels (void) |
negotiate channel More... | |
virtual int | getChannels (void) |
Return the channels. More... | |
virtual void | setAudioFormat (int type) |
Set audio object format. More... | |
virtual int | getAudioFormat () |
Get audio object format. More... | |
bool | isOk () |
Return true if file loaded ok. More... | |
Protected Attributes | |
bool | mbIsOk |
If file loaded ok. More... | |
Private Attributes | |
MpAudioAbstract * | mPrevious |
object to get data from More... | |
MpAudioAbstract * | mNext |
object pulling data from us More... | |
long | mSamplingRate |
bool | mSamplingRateFrozen |
long | mChannels |
bool | mChannelsFrozen |
int | mDetectedFormat |
MpAudioAbstract | ( | void | ) |
Default Constructor.
MpAudioAbstract | ( | MpAudioAbstract * | audio | ) |
Copy Constructor.
|
virtual |
Destructor.
|
pure virtual |
Returns number of samples actually read, 0 on error.
Implemented in MpAudioWaveFileRead, and MpAuRead.
|
virtual |
read length of bytes
Reimplemented in MpAudioWaveFileRead, and MpAuRead.
|
virtual |
get bytes size of the audio file
Reimplemented in MpAudioWaveFileRead, and MpAuRead.
|
virtual |
get decompression type of the audio file
Reimplemented in MpAudioWaveFileRead, and MpAuRead.
MpAudioAbstract * getPreviousAudio | ( | void | ) |
get previous audio
void setPreviousAudio | ( | MpAudioAbstract * | a | ) |
set previous audio to a
MpAudioAbstract * getNextAudio | ( | void | ) |
get next audio
void setNextAudio | ( | MpAudioAbstract * | a | ) |
set next audio to a
|
virtual |
Set the sampling rate to s.
|
virtual |
Set sampling rate recursively.
|
virtual |
TODO: the meaning of this function, get the prefered Sampling rate.
Reimplemented in MpAudioWaveFileRead, and MpAuRead.
|
virtual |
negotiate the sampling rate
|
virtual |
Return the sampling rate.
|
virtual |
Set channel to ch.
|
virtual |
Set channel recusively.
|
virtual |
Get prefered channel.
Reimplemented in MpAuRead, and MpAudioWaveFileRead.
|
virtual |
negotiate channel
|
virtual |
Return the channels.
|
inlinevirtual |
Set audio object format.
|
inlinevirtual |
Get audio object format.
|
inline |
Return true if file loaded ok.
|
private |
object to get data from
|
private |
object pulling data from us
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
If file loaded ok.