|
MythTV
0.26-pre
|
#include <audioinputalsa.h>
Public Member Functions | |
| AudioInputALSA (const QString &device) | |
| ~AudioInputALSA () | |
| bool | Open (uint sample_bits, uint sample_rate, uint channels) |
| bool | IsOpen (void) |
| void | Close (void) |
| bool | Start (void) |
| bool | Stop (void) |
| int | GetBlockSize (void) |
| int | GetSamples (void *buf, uint nbytes) |
| int | GetNumReadyBytes (void) |
Private Member Functions | |
| bool | PrepHwParams (void) |
| bool | PrepSwParams (void) |
| int | PcmRead (void *buf, uint nbytes) |
| bool | Recovery (int err) |
| bool | AlsaBad (int op_result, QString errmsg) |
Private Attributes | |
| QByteArray | alsa_device |
| snd_pcm_t * | pcm_handle |
| snd_pcm_uframes_t | period_size |
| int | myth_block_bytes |
Definition at line 33 of file audioinputalsa.h.
| AudioInputALSA::AudioInputALSA | ( | const QString & | device | ) |
Definition at line 28 of file audioinputalsa.cpp.
| AudioInputALSA::~AudioInputALSA | ( | ) | [inline] |
Definition at line 37 of file audioinputalsa.h.
| bool AudioInputALSA::Open | ( | uint | sample_bits, |
| uint | sample_rate, | ||
| uint | channels | ||
| ) | [virtual] |
Implements AudioInput.
Definition at line 37 of file audioinputalsa.cpp.
| bool AudioInputALSA::IsOpen | ( | void | ) | [inline, virtual] |
Implements AudioInput.
Definition at line 40 of file audioinputalsa.h.
| void AudioInputALSA::Close | ( | void | ) | [virtual] |
Implements AudioInput.
Definition at line 66 of file audioinputalsa.cpp.
Referenced by ~AudioInputALSA().
| bool AudioInputALSA::Start | ( | void | ) | [inline, virtual] |
| bool AudioInputALSA::Stop | ( | void | ) | [virtual] |
Implements AudioInput.
Definition at line 76 of file audioinputalsa.cpp.
Referenced by Close(), and GetSamples().
| int AudioInputALSA::GetBlockSize | ( | void | ) | [inline, virtual] |
Implements AudioInput.
Definition at line 46 of file audioinputalsa.h.
| int AudioInputALSA::GetSamples | ( | void * | buf, |
| uint | nbytes | ||
| ) | [virtual] |
Implements AudioInput.
Definition at line 88 of file audioinputalsa.cpp.
| int AudioInputALSA::GetNumReadyBytes | ( | void | ) | [virtual] |
Implements AudioInput.
Definition at line 121 of file audioinputalsa.cpp.
| bool AudioInputALSA::PrepHwParams | ( | void | ) | [private] |
Definition at line 141 of file audioinputalsa.cpp.
Referenced by Open().
| bool AudioInputALSA::PrepSwParams | ( | void | ) | [private] |
Definition at line 218 of file audioinputalsa.cpp.
Referenced by Open().
| int AudioInputALSA::PcmRead | ( | void * | buf, |
| uint | nbytes | ||
| ) | [private] |
Definition at line 243 of file audioinputalsa.cpp.
Referenced by GetSamples().
| bool AudioInputALSA::Recovery | ( | int | err | ) | [private] |
Definition at line 298 of file audioinputalsa.cpp.
Referenced by PcmRead().
| bool AudioInputALSA::AlsaBad | ( | int | op_result, |
| QString | errmsg | ||
| ) | [private] |
Definition at line 331 of file audioinputalsa.cpp.
Referenced by Close(), GetNumReadyBytes(), GetSamples(), Open(), PcmRead(), PrepHwParams(), PrepSwParams(), and Stop().
QByteArray AudioInputALSA::alsa_device [private] |
Definition at line 57 of file audioinputalsa.h.
Referenced by AudioInputALSA(), and Open().
snd_pcm_t* AudioInputALSA::pcm_handle [private] |
Definition at line 58 of file audioinputalsa.h.
Referenced by Close(), GetNumReadyBytes(), GetSamples(), IsOpen(), Open(), PcmRead(), PrepHwParams(), PrepSwParams(), Recovery(), Start(), and Stop().
snd_pcm_uframes_t AudioInputALSA::period_size [private] |
Definition at line 59 of file audioinputalsa.h.
Referenced by PrepHwParams().
int AudioInputALSA::myth_block_bytes [private] |
Definition at line 60 of file audioinputalsa.h.
Referenced by GetBlockSize(), and PrepHwParams().
1.7.6.1