EMIPLIB
Public Member Functions

MIPAlsaOutput Class Reference

An Advanced Linux Sound Architecture (ALSA) soundcard output component. More...

#include <mipalsaoutput.h>

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

List of all members.

Public Member Functions

bool open (int sampRate, int channels, const std::string device=std::string("plughw:0,0"), MIPTime blockTime=MIPTime(0.020), MIPTime arrayTime=MIPTime(10.0), bool floatSamples=true)
 Opens the soundcard device.
bool close ()
 Closes the soundcard device.

Detailed Description

This component uses the Advanced Linux Sound Architecture (ALSA) system to provide soundcard output functions. The component accepts floating point raw audio messages or signed 16 bit integer encoded raw audio messages and does not generate any messages itself.


Member Function Documentation

bool MIPAlsaOutput::close ( )

This function closes the previously opened soundcard device.

bool MIPAlsaOutput::open ( int  sampRate,
int  channels,
const std::string  device = std::string("plughw:0,0"),
MIPTime  blockTime = MIPTime(0.020),
MIPTime  arrayTime = MIPTime(10.0),
bool  floatSamples = true 
)

With this function, the soundcard output component opens and initializes the soundcard device.

Parameters:
sampRateThe sampling rate.
channelsThe number of channels.
deviceThe name of the device to open.
blockTimeAudio data with a length corresponding to this parameter is sent to the soundcard device during each iteration.
arrayTimeThe amount of memory allocated to internal buffers, specified as a time interval. Note that this does not correspond to the amount of buffering introduced by this component.
floatSamplesFlag indicating if floating point samples or integer samples should be used.

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