#include <PCM.H>
Class to handle an ALSA pcm object
Definition at line 26 of file PCM.H.
◆ PCM()
Definition at line 31 of file PCM.H.
◆ ~PCM()
virtual ALSA::PCM::~PCM |
( |
| ) |
|
|
inlinevirtual |
Definition at line 36 of file PCM.H.
◆ close()
Close the stream
- Returns
- >= 0 on success
Definition at line 70 of file PCM.H.
◆ disconnected()
bool ALSA::PCM::disconnected |
( |
| ) |
|
|
inline |
Returns true if in the disconnected state
Definition at line 238 of file PCM.H.
◆ drain()
Stops the PCM allowing it to finish draining frames.
- Returns
- <0 on error
Definition at line 96 of file PCM.H.
◆ draining()
bool ALSA::PCM::draining |
( |
| ) |
|
|
inline |
Returns true if in the draining state
Definition at line 217 of file PCM.H.
◆ drop()
Stops the PCM dropping frames.
- Returns
- <0 on error
Definition at line 83 of file PCM.H.
◆ dumpHWSetup()
int ALSA::PCM::dumpHWSetup |
( |
| ) |
|
|
inline |
◆ dumpPCM()
int ALSA::PCM::dumpPCM |
( |
| ) |
|
|
inline |
◆ dumpSetup()
int ALSA::PCM::dumpSetup |
( |
| ) |
|
|
inline |
◆ dumpStatus()
int ALSA::PCM::dumpStatus |
( |
| ) |
|
|
inline |
◆ dumpSWSetup()
int ALSA::PCM::dumpSWSetup |
( |
| ) |
|
|
inline |
◆ enableLog()
void ALSA::PCM::enableLog |
( |
| ) |
|
|
inline |
◆ getPCM()
virtual snd_pcm_t* ALSA::PCM::getPCM |
( |
| ) |
|
|
inlinevirtual |
◆ getPCMP()
snd_pcm_t** ALSA::PCM::getPCMP |
( |
| ) |
|
|
inline |
Get a pointer to the handle pointer of the stream
- Returns
- A pointer to the handle pointer
Definition at line 49 of file PCM.H.
◆ getState()
snd_pcm_state_t ALSA::PCM::getState |
( |
| ) |
|
|
inline |
◆ getStateName()
const char* ALSA::PCM::getStateName |
( |
| ) |
|
|
inline |
◆ hasXrun()
bool ALSA::PCM::hasXrun |
( |
| ) |
|
|
inline |
Returns true if in the xrun state
Definition at line 210 of file PCM.H.
◆ isSetup()
bool ALSA::PCM::isSetup |
( |
| ) |
|
|
inline |
Returns true if in the setup state
Definition at line 196 of file PCM.H.
◆ logEnabled()
int ALSA::PCM::logEnabled |
( |
| ) |
|
|
inline |
◆ open()
int ALSA::PCM::open |
( |
const char * |
device, |
|
|
snd_pcm_stream_t |
streamType, |
|
|
const int |
block |
|
) |
| |
|
inline |
Open the stream
- Parameters
-
device | The name of the device |
streamType | SND_PCM_STREAM_PLAYBACK or SND_PCM_STREAM_CAPTURE |
block | Whether to open non blocking |
- Returns
- >= 0 on success
Definition at line 59 of file PCM.H.
◆ opened()
bool ALSA::PCM::opened |
( |
| ) |
|
|
inline |
Returns true if in the open state
Definition at line 189 of file PCM.H.
◆ paused()
bool ALSA::PCM::paused |
( |
| ) |
|
|
inline |
Returns true if in the PAUSED state
Definition at line 224 of file PCM.H.
◆ prepared()
bool ALSA::PCM::prepared |
( |
| ) |
|
|
inline |
Returns true if in the prepared state
Definition at line 182 of file PCM.H.
◆ reset()
Resets the PCM.
- Returns
- <0 on error
Definition at line 104 of file PCM.H.
◆ running()
bool ALSA::PCM::running |
( |
| ) |
|
|
inline |
Returns true if in the running state
Definition at line 203 of file PCM.H.
◆ start()
◆ suspended()
bool ALSA::PCM::suspended |
( |
| ) |
|
|
inline |
Returns true if in the SUSPENDED state
Definition at line 231 of file PCM.H.
◆ handle
snd_pcm_t* ALSA::PCM::handle |
|
protected |
◆ log
snd_output_t* ALSA::PCM::log |
|
protected |
The log stream if enabled.
Definition at line 28 of file PCM.H.
The documentation for this class was generated from the following file:
- /tmp/gtkiostream/include/ALSA/PCM.H