#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#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) } |
|
◆ LOC
#define LOC QString("ALSA: ") |
◆ assert
◆ AERROR
#define AERROR |
( |
|
str | ) |
LOG(VB_GENERAL, LOG_ERR, LOC + (str) + QString(": %1").arg(snd_strerror(err))) |
◆ CHECKERR
#define CHECKERR |
( |
|
str | ) |
{ if (err < 0) { AERROR(str); return err; } } |
◆ tReorderSmpteToAlsa()
template<class AudioDataType >
static void tReorderSmpteToAlsa |
( |
AudioDataType * |
buf, |
|
|
uint |
frames, |
|
|
uint |
extrach |
|
) |
| |
|
inlinestatic |
◆ ReorderSmpteToAlsa()
◆ CHANNELS_MIN
constexpr uint8_t CHANNELS_MIN { 1 } |
|
staticconstexpr |
◆ CHANNELS_MAX
constexpr uint8_t CHANNELS_MAX { 8 } |
|
staticconstexpr |
◆ OPEN_FLAGS
constexpr int OPEN_FLAGS { SND_PCM_NO_AUTO_RESAMPLE | SND_PCM_NO_AUTO_FORMAT | SND_PCM_NO_AUTO_CHANNELS } |
|
staticconstexpr |
◆ FILTER_FLAGS
constexpr int FILTER_FLAGS { ~(SND_PCM_NO_AUTO_FORMAT) } |
|
staticconstexpr |