EMIPLIB
Public Member Functions

MIPEsdOutput Class Reference

An Enlightened Sound Daemon (ESD) soundcard output component. More...

#include <mipesdoutput.h>

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

List of all members.

Public Member Functions

bool open (int sampRate, int channels, int sampWidth=16, MIPTime blockTime=MIPTime(0.020), MIPTime arrayTime=MIPTime(10.0))
 Opens the soundcard device.
int getSamplingRate () const
 Returns the sampling rate used by ESD.
int getNumberOfChannels () const
 Returns the number of channels used by ESD.
int getSampleWidth () const
 Returns the sample width used by ESD.
bool close ()
 Closes the soundcard device.

Detailed Description

This component uses the Enlightened Sound Daemon (ESD) system to provide soundcard output functions. The component accepts integer raw audio messages (16 bit native endian) and does not generate any messages itself.


Member Function Documentation

bool MIPEsdOutput::close ( )

This function closes the previously opened soundcard device.

bool MIPEsdOutput::open ( int  sampRate,
int  channels,
int  sampWidth = 16,
MIPTime  blockTime = MIPTime(0.020),
MIPTime  arrayTime = MIPTime(10.0) 
)

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

Parameters:
sampRateThe sampling rate.
channelsThe number of channels.
sampWidthThe width of a sample in bits.
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.

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