#include <Audio.hh>
Public Member Functions | |
| clAudio () | |
| clAudio (const char *, int *, int *, int *, int) | |
| ~clAudio () | |
| bool | Open (const char *, int *, int *, int *, int) |
| Open device. | |
| void | Close () |
| Close device. | |
| bool | SetParams (int *, int *, int *) |
| Set device parameters. | |
| bool | SetFormat (int *) |
| Set format. | |
| bool | SetChannels (int *) |
| Set channel count. | |
| bool | SetSampleRate (int *) |
| Set samplerate. | |
| int | Read (void *, int) |
| Read data to buffer. | |
| int | Write (const void *, int) |
| Write data from buffer. | |
| bool | Sync () |
| Wait for buffer to be played empty. | |
| bool | Reset () |
| Stops any ongoing action and returns 'normal' state (for example stops recording). | |
| bool | Post () |
| Indicates driver that there will be pause in IO action. | |
| int | GetFragmentSize () |
| Get internal buffering fragment size. | |
| bool | SubDivide (int *) |
| Undocumented feature of OSS. | |
| bool | SetFragment (int, int) |
| Set buffering. | |
| int | GetFormats () |
| Get supported formats. | |
| bool | GetInBufInfo (audio_buf_info *) |
| Get input buffer info. | |
| bool | GetOutBufInfo (audio_buf_info *) |
| Get output buffer info. | |
| bool | GetInBufStat (count_info *) |
| Get input buffer status. | |
| bool | GetOutBufStat (count_info *) |
| Get output buffer status. | |
| int | GetCaps () |
| Get device capabilities. | |
| bool | SetDuplex () |
| Enable full duplex. | |
| bool | SetNonBlock () |
| Set always nonblocking io. | |
| bool | SetSynchronous () |
| Set synchronous operation. | |
| int | GetTrigger () |
| Get trigger mask. | |
| bool | SetTrigger (int) |
| Set trigger mask. | |
| bool | MapInBuffer (buffmem_desc *) |
| Map input buffer. | |
| bool | MapOutBuffer (buffmem_desc *) |
| Map output buffer. | |
| int | GetOutDelay () |
| Get output delay. | |
| bool | GetErrorInfo (audio_errinfo *) |
| Get detailed error information. | |
| int | GetVersion () |
| Get OSS version. | |
| void | DeIntStereo (const signed short *, signed short *, signed short *, unsigned int) |
| Methods for (de)interleaving stereo data. | |
| void | DeIntStereo (const unsigned char *, unsigned char *, unsigned char *, unsigned int) |
| void | IntStereo (signed short *, const signed short *, const signed short *, unsigned int) |
| void | IntStereo (unsigned char *, const unsigned char *, const unsigned char *, unsigned int) |
| int | GetHandle () |
| Get device handle. | |
| int | GetError () |
| Get errno code. | |
| int | GetErrno () |
Private Attributes | |
| int | iDevH |
| int | iErrorCode |
Definition at line 49 of file Audio.hh.
|
|
Definition at line 43 of file Audio.cc. References iDevH, and iErrorCode. |
|
||||||||||||||||||||||||
|
Definition at line 50 of file Audio.cc. References iDevH, iErrorCode, and Open(). |
|
|
Definition at line 59 of file Audio.cc. References Close(). |
|
||||||||||||||||||||||||
|
Open device.
Definition at line 65 of file Audio.cc. References AUDIO_DUPLEX, AUDIO_READ, AUDIO_WRITE, iDevH, and iErrorCode. Referenced by clSoundSrv2::AudioInThread(), clAudio(), clSoundUI::SoundInThread(), and clSoundUI::SoundOutThread(). |
|
|
Close device.
Definition at line 118 of file Audio.cc. References iDevH. Referenced by clBeamAudioUI::AudioOutThread(), clSoundUI::SoundInThread(), clSoundUI::SoundOutThread(), and ~clAudio(). |
|
||||||||||||||||
|
Set device parameters.
Definition at line 125 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Set format.
Definition at line 147 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Set channel count.
Definition at line 160 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Set samplerate.
Definition at line 172 of file Audio.cc. References iDevH, and iErrorCode. |
|
||||||||||||
|
Read data to buffer.
Definition at line 184 of file Audio.cc. References iDevH, and iErrorCode. Referenced by clSoundSrv2::AudioInThread(). |
|
||||||||||||
|
Write data from buffer.
Definition at line 206 of file Audio.cc. References iDevH, and iErrorCode. Referenced by clBeamAudioUI::AudioOutThread(), main(), clSoundUI::SoundInThread(), and clSoundUI::SoundOutThread(). |
|
|
Wait for buffer to be played empty.
Definition at line 228 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Stops any ongoing action and returns 'normal' state (for example stops recording).
Definition at line 240 of file Audio.cc. References iDevH, and iErrorCode. Referenced by clSoundUI::SoundInThread(), and clSoundUI::SoundOutThread(). |
|
|
Indicates driver that there will be pause in IO action.
Definition at line 252 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Get internal buffering fragment size.
Definition at line 264 of file Audio.cc. References iDevH, and iErrorCode. Referenced by clSoundSrv2::AudioInThread(), and clSoundSrv::clSoundSrv(). |
|
|
Undocumented feature of OSS.
Definition at line 278 of file Audio.cc. References iDevH, and iErrorCode. |
|
||||||||||||
|
Set buffering.
Definition at line 290 of file Audio.cc. References iDevH, and iErrorCode. Referenced by clSoundSrv2::AudioInThread(). |
|
|
Get supported formats.
Definition at line 307 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Get input buffer info.
Definition at line 321 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Get output buffer info.
Definition at line 333 of file Audio.cc. References iDevH, and iErrorCode. Referenced by clBeamAudioUI::AudioOutThread(), main(), and clSoundUI::SoundInThread(). |
|
|
Get input buffer status.
Definition at line 345 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Get output buffer status.
Definition at line 357 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Get device capabilities.
Definition at line 369 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Enable full duplex.
Definition at line 383 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Set always nonblocking io.
Definition at line 395 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Set synchronous operation.
Definition at line 407 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Get trigger mask.
Definition at line 419 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Set trigger mask.
Definition at line 433 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Map input buffer.
Definition at line 445 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Map output buffer.
Definition at line 457 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Get output delay.
Definition at line 469 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Get detailed error information.
Definition at line 484 of file Audio.cc. References iDevH, and iErrorCode. |
|
|
Get OSS version.
Definition at line 497 of file Audio.cc. References iDevH, and iErrorCode. Referenced by clSoundSrv2::AudioInThread(), and clSoundSrv::clSoundSrv(). |
|
||||||||||||||||||||
|
Methods for (de)interleaving stereo data.
|
|
||||||||||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
||||||||||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
||||||||||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
|
Get device handle.
Definition at line 283 of file Audio.hh. References iDevH. Referenced by clSoundSrv::InputExec(). |
|
|
Get errno code.
Definition at line 289 of file Audio.hh. References iErrorCode. Referenced by clSoundSrv::clSoundSrv(), main(), and clSoundUI::SoundOutThread(). |
|
|
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 291 of file Audio.hh. References iErrorCode. |
|
|
Definition at line 51 of file Audio.hh. Referenced by clAudio(), Close(), GetCaps(), GetErrorInfo(), GetFormats(), GetFragmentSize(), GetHandle(), GetInBufInfo(), GetInBufStat(), GetOutBufInfo(), GetOutBufStat(), GetOutDelay(), GetTrigger(), GetVersion(), MapInBuffer(), MapOutBuffer(), Open(), Post(), Read(), Reset(), SetChannels(), SetDuplex(), SetFormat(), SetFragment(), SetNonBlock(), SetParams(), SetSampleRate(), SetSynchronous(), SetTrigger(), SubDivide(), Sync(), and Write(). |
|
|
Definition at line 52 of file Audio.hh. Referenced by clAudio(), GetCaps(), GetErrno(), GetError(), GetErrorInfo(), GetFormats(), GetFragmentSize(), GetInBufInfo(), GetInBufStat(), GetOutBufInfo(), GetOutBufStat(), GetOutDelay(), GetTrigger(), GetVersion(), MapInBuffer(), MapOutBuffer(), Open(), Post(), Read(), Reset(), SetChannels(), SetDuplex(), SetFormat(), SetFragment(), SetNonBlock(), SetParams(), SetSampleRate(), SetSynchronous(), SetTrigger(), SubDivide(), Sync(), and Write(). |
1.3.3