EMIPLIB
|
An Enlightened Sound Daemon (ESD) soundcard output component. More...
#include <mipesdoutput.h>
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. |
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.
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.
sampRate | The sampling rate. |
channels | The number of channels. |
sampWidth | The width of a sample in bits. |
blockTime | Audio data with a length corresponding to this parameter is sent to the soundcard device during each iteration. |
arrayTime | The 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. |