#include <ComediIO.hh>
Public Types | |
| enum | { VERS_MASK_MAJ = 0x00ff0000, VERS_MASK_MIN = 0x0000ff00, VERS_MASK_PL = 0x000000ff } |
| enum | { VERS_SHIFT_MAJ = 16, VERS_SHIFT_MIN = 8, VERS_SHIFT_PL = 0 } |
Public Member Functions | |
| clComediIO () | |
| ~clComediIO () | |
| bool | Open (const char *) |
| Open device. | |
| bool | Close () |
| Close device. | |
| int | GetSubdeviceCount () |
| Get number of subdevices. | |
| int | GetVersionCode () |
| Get version code. | |
| const char * | GetDriverName () |
| Get driver name. | |
| const char * | GetBoardName () |
| Get board name. | |
| const char * | GetErrorMsg () |
| Get error message. | |
| bool | PcmInOpen () |
| Open PCM input device. | |
| bool | PcmInClose () |
| Close PCM input device. | |
| int | PcmInGetChannelCount () |
| Get number of channels for PCM input device. | |
| bool | PcmInStart (double *, int, double, bool=true, bool=false) |
| Start input operation. | |
| bool | PcmInStop () |
| Stop input operation. | |
| long | PcmInRead (float *, long) |
| Read input samples. | |
| long | PcmInRead (double *, long) |
| bool | PcmBufferSizeSet (unsigned int) |
| Set buffer size for PCM device. | |
| int | PcmBufferSizeGet () |
| Get buffer size for PCM device. | |
| size_t | PcmGetIntSampleSize () |
| Get internal sample size (for calculating buffer sizes). | |
Private Member Functions | |
| void | SetError () |
| bool | PcmStart (int, double *, int, unsigned int *, unsigned int, bool, bool) |
| long | PcmRead (sampl_t **, long) |
Private Attributes | |
| int | iInSubDev |
| char * | cpErrorMsg |
| comedi_t * | comediDev |
| lsampl_t | iInMaxValue |
| clAlloc | InScanList |
| clAlloc | InBuf |
Definition at line 36 of file ComediIO.hh.
|
|
Definition at line 49 of file ComediIO.hh. |
|
|
Definition at line 55 of file ComediIO.hh. |
|
|
Definition at line 108 of file ComediIO.cc. References comediDev, cpErrorMsg, and iInSubDev. |
|
|
Definition at line 116 of file ComediIO.cc. References Close(). |
|
|
Definition at line 30 of file ComediIO.cc. References cpErrorMsg. Referenced by Close(), GetVersionCode(), Open(), PcmBufferSizeGet(), PcmBufferSizeSet(), PcmInClose(), PcmInGetChannelCount(), PcmInOpen(), PcmInRead(), PcmInStart(), PcmInStop(), and PcmStart(). |
|
||||||||||||||||||||||||||||||||
|
dpSampleRate = 1.0 / ((double) sComediCmd.convert_arg * iChannels / 1.0e9); Definition at line 38 of file ComediIO.cc. References comediDev, and SetError(). Referenced by PcmInStart(). |
|
||||||||||||
|
Definition at line 86 of file ComediIO.cc. References comediDev, and InBuf. Referenced by PcmInRead(). |
|
|
Open device.
Definition at line 122 of file ComediIO.cc. References comediDev, and SetError(). Referenced by clComediSrv::AudioInThread(). |
|
|
Close device.
Definition at line 134 of file ComediIO.cc. References comediDev, cpErrorMsg, iInSubDev, and SetError(). Referenced by clComediSrv::AudioInThread(), and ~clComediIO(). |
|
|
Get number of subdevices.
Definition at line 163 of file ComediIO.cc. References comediDev. |
|
|
Get version code.
Definition at line 169 of file ComediIO.cc. References comediDev, and SetError(). Referenced by clComediSrv::AudioInThread(). |
|
|
Get driver name.
Definition at line 180 of file ComediIO.cc. References comediDev. Referenced by clComediSrv::AudioInThread(). |
|
|
Get board name.
Definition at line 186 of file ComediIO.cc. References comediDev. Referenced by clComediSrv::AudioInThread(). |
|
|
Get error message.
Definition at line 106 of file ComediIO.hh. References cpErrorMsg. Referenced by clComediSrv::AudioInThread(). |
|
|
Open PCM input device.
Definition at line 192 of file ComediIO.cc. References comediDev, iInMaxValue, iInSubDev, and SetError(). |
|
|
Close PCM input device.
Definition at line 216 of file ComediIO.cc. References comediDev, iInSubDev, and SetError(). Referenced by clComediSrv::AudioInThread(). |
|
|
Get number of channels for PCM input device.
Definition at line 231 of file ComediIO.cc. References comediDev, iInSubDev, and SetError(). |
|
||||||||||||||||||||||||
|
Start input operation.
Definition at line 242 of file ComediIO.cc. References comediDev, iInSubDev, InScanList, PcmStart(), and SetError(). Referenced by clComediSrv::AudioInThread(). |
|
|
Stop input operation.
Definition at line 265 of file ComediIO.cc. References comediDev, iInSubDev, and SetError(). Referenced by clComediSrv::AudioInThread(). |
|
||||||||||||
|
Read input samples.
Definition at line 276 of file ComediIO.cc. References iInMaxValue, PcmRead(), and SetError(). Referenced by clComediSrv::AudioInThread(). |
|
||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Definition at line 296 of file ComediIO.cc. References iInMaxValue, PcmRead(), and SetError(). |
|
|
Set buffer size for PCM device.
Definition at line 316 of file ComediIO.cc. References comediDev, iInSubDev, and SetError(). Referenced by clComediSrv::AudioInThread(). |
|
|
Get buffer size for PCM device.
Definition at line 334 of file ComediIO.cc. References comediDev, iInSubDev, and SetError(). Referenced by clComediSrv::AudioInThread(). |
|
|
Get internal sample size (for calculating buffer sizes).
Definition at line 174 of file ComediIO.hh. Referenced by clComediSrv::AudioInThread(). |
|
|
Definition at line 38 of file ComediIO.hh. Referenced by clComediIO(), Close(), PcmBufferSizeGet(), PcmBufferSizeSet(), PcmInClose(), PcmInGetChannelCount(), PcmInOpen(), PcmInStart(), and PcmInStop(). |
|
|
Definition at line 39 of file ComediIO.hh. Referenced by clComediIO(), Close(), GetErrorMsg(), and SetError(). |
|
|
Definition at line 40 of file ComediIO.hh. Referenced by clComediIO(), Close(), GetBoardName(), GetDriverName(), GetSubdeviceCount(), GetVersionCode(), Open(), PcmBufferSizeGet(), PcmBufferSizeSet(), PcmInClose(), PcmInGetChannelCount(), PcmInOpen(), PcmInStart(), PcmInStop(), PcmRead(), and PcmStart(). |
|
|
Definition at line 41 of file ComediIO.hh. Referenced by PcmInOpen(), and PcmInRead(). |
|
|
Definition at line 42 of file ComediIO.hh. Referenced by PcmInStart(). |
|
|
Definition at line 43 of file ComediIO.hh. Referenced by PcmRead(). |
1.3.3