EMIPLIB  1.2.1
Public Member Functions | List of all members
MIPSamplingRateConverter Class Reference

Converts sampling rate and number of channels of raw audio messages. More...

#include <mipsamplingrateconverter.h>

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

Public Member Functions

bool init (int outRate, int outChannels, bool floatSamples=true)
 Initialize the sampling rate converter. More...
 
- Public Member Functions inherited from MIPComponent
virtual void lock ()
 Locks the current component. More...
 
virtual void unlock ()
 Unlocks the current component. More...
 
virtual bool processFeedback (const MIPComponentChain &chain, int64_t feedbackChainID, MIPFeedback *feedback)
 Add feedback information about this component. More...
 
std::string getComponentName () const
 Returns the name of the component. More...
 
- Public Member Functions inherited from MIPErrorBase
std::string getErrorString () const
 Returns the last known error description. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MIPComponent
 MIPComponent (const std::string &componentName)
 Create a component with the specified name. More...
 
- Protected Member Functions inherited from MIPErrorBase
void setErrorString (const std::string &str) const
 Stores an error description. More...
 

Detailed Description

This component accepts incoming floating point or 16 bit signed integer raw audio messages and produces similar messages with a specific sampling rate and number of channels set during initialization.

Member Function Documentation

bool MIPSamplingRateConverter::init ( int  outRate,
int  outChannels,
bool  floatSamples = true 
)

This function instructs the converter to generate raw audio messages with sampling rate outRate and number of channels outChannels. If the floatSamples flag is set, floating point samples will be used, otherwise 16 bit signed native endian samples will be used.


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