EMIPLIB
Public Member Functions

MIPOSSInputOutputParams Class Reference

Parameters for a MIPOSSInputOutput instance. More...

#include <mipossinputoutput.h>

Collaboration diagram for MIPOSSInputOutputParams:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void setUseExactRate (bool f)
 Sets a flag indicating if only the exact specified sampling rate can be used (default: true).
void setBufferTime (MIPTime t)
 Sets a parameter specifying the amount of memory which is allocated for output buffers.
void setDeviceName (const std::string &name)
 Sets the name of the device to use (default: /dev/dsp).
void setOSSBufferSize (MIPTime t)
 Sets the size of internal buffer fragments for the OSS driver.
void setOSSFragments (uint16_t n)
 Sets the amount of buffer fragments for the OSS driver.
bool useExactRate () const
 Returns true if the exact specified sampling rate should be used.
MIPTime getBufferTime () const
 Returns the amount of memory which is allocated for output buffers.
std::string getDeviceName () const
 Returns the name of the device which will be used.
MIPTime getOSSBufferSize () const
 Returns the size of the buffer fragments which will be used by the OSS driver.
uint16_t getOSSFragments () const
 Returns the number of buffer fragments which will be used by the OSS driver.

Detailed Description


Member Function Documentation

MIPTime MIPOSSInputOutputParams::getBufferTime ( ) const [inline]
std::string MIPOSSInputOutputParams::getDeviceName ( ) const [inline]
MIPTime MIPOSSInputOutputParams::getOSSBufferSize ( ) const [inline]
uint16_t MIPOSSInputOutputParams::getOSSFragments ( ) const [inline]
void MIPOSSInputOutputParams::setBufferTime ( MIPTime  t) [inline]

Using this function, the amount of memory which is allocated for output buffers can be set. Note that this is definitely not the amount of buffering which is introduced. The default value is 10.0 seconds.

void MIPOSSInputOutputParams::setDeviceName ( const std::string &  name) [inline]
void MIPOSSInputOutputParams::setOSSBufferSize ( MIPTime  t) [inline]

Using this function, you can change the size of a buffer fragment used by the OSS driver. The default value is 0.007 seconds.

void MIPOSSInputOutputParams::setOSSFragments ( uint16_t  n) [inline]

Using this function, the number of buffer fragments used by the OSS driver can be changed. The default number of fragments is 6.

void MIPOSSInputOutputParams::setUseExactRate ( bool  f) [inline]
bool MIPOSSInputOutputParams::useExactRate ( ) const [inline]

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