#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <sys/time.h>
#include <QFile>
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythlogging.h"
#include "audiooutputalsa.h"
Go to the source code of this file.
|
| #define | LOC QString("ALSA: ") |
| |
| #define | assert(x) |
| |
| #define | AERROR(str) LOG(VB_GENERAL, LOG_ERR, LOC + (str) + QString(": %1").arg(snd_strerror(err))) |
| |
| #define | CHECKERR(str) { if (err < 0) { AERROR(str); return err; } } |
| |
|
| static constexpr uint8_t | CHANNELS_MIN { 1 } |
| |
| static constexpr uint8_t | CHANNELS_MAX { 8 } |
| |
| static constexpr int | OPEN_FLAGS { SND_PCM_NO_AUTO_RESAMPLE | SND_PCM_NO_AUTO_FORMAT | SND_PCM_NO_AUTO_CHANNELS } |
| |
| static constexpr int | FILTER_FLAGS { ~(SND_PCM_NO_AUTO_FORMAT) } |
| |
◆ AERROR
| #define AERROR |
( |
|
str | ) |
LOG(VB_GENERAL, LOG_ERR, LOC + (str) + QString(": %1").arg(snd_strerror(err))) |
◆ assert
◆ CHECKERR
| #define CHECKERR |
( |
|
str | ) |
{ if (err < 0) { AERROR(str); return err; } } |
◆ LOC
| #define LOC QString("ALSA: ") |
◆ ReorderSmpteToAlsa()
◆ tReorderSmpteToAlsa()
template<class AudioDataType >
| static void tReorderSmpteToAlsa |
( |
AudioDataType * |
buf, |
|
|
uint |
frames, |
|
|
uint |
extrach |
|
) |
| |
|
inlinestatic |
◆ CHANNELS_MAX
| constexpr uint8_t CHANNELS_MAX { 8 } |
|
staticconstexpr |
◆ CHANNELS_MIN
| constexpr uint8_t CHANNELS_MIN { 1 } |
|
staticconstexpr |
◆ FILTER_FLAGS
| constexpr int FILTER_FLAGS { ~(SND_PCM_NO_AUTO_FORMAT) } |
|
staticconstexpr |
◆ OPEN_FLAGS
| constexpr int OPEN_FLAGS { SND_PCM_NO_AUTO_RESAMPLE | SND_PCM_NO_AUTO_FORMAT | SND_PCM_NO_AUTO_CHANNELS } |
|
staticconstexpr |