MythTV  master
Macros | Functions | Variables
audiooutputalsa.cpp File Reference
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <sys/time.h>
#include <QFile>
#include "libmythbase/mythcorecontext.h"
#include "audiooutputalsa.h"
Include dependency graph for audiooutputalsa.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("ALSA: ")
 
#define assert(x)
 
#define AERROR(str)   VBERROR((str) + QString(": %1").arg(snd_strerror(err)))
 
#define CHECKERR(str)   { if (err < 0) { AERROR(str); return err; } }
 

Functions

template<class AudioDataType >
static void tReorderSmpteToAlsa (AudioDataType *buf, uint frames, uint extrach)
 
static void ReorderSmpteToAlsa (void *buf, uint frames, AudioFormat format, uint extrach)
 

Variables

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) }
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("ALSA: ")

Definition at line 11 of file audiooutputalsa.cpp.

◆ assert

#define assert (   x)

Definition at line 16 of file audiooutputalsa.cpp.

◆ AERROR

#define AERROR (   str)    VBERROR((str) + QString(": %1").arg(snd_strerror(err)))

Definition at line 27 of file audiooutputalsa.cpp.

◆ CHECKERR

#define CHECKERR (   str)    { if (err < 0) { AERROR(str); return err; } }

Definition at line 28 of file audiooutputalsa.cpp.

Function Documentation

◆ tReorderSmpteToAlsa()

template<class AudioDataType >
static void tReorderSmpteToAlsa ( AudioDataType *  buf,
uint  frames,
uint  extrach 
)
inlinestatic

Definition at line 517 of file audiooutputalsa.cpp.

Referenced by ReorderSmpteToAlsa().

◆ ReorderSmpteToAlsa()

static void ReorderSmpteToAlsa ( void *  buf,
uint  frames,
AudioFormat  format,
uint  extrach 
)
inlinestatic

Definition at line 538 of file audiooutputalsa.cpp.

Referenced by AudioOutputALSA::WriteAudio().

Variable Documentation

◆ CHANNELS_MIN

constexpr uint8_t CHANNELS_MIN { 1 }
staticconstexpr

Definition at line 18 of file audiooutputalsa.cpp.

Referenced by AudioOutputALSA::GetOutputSettings().

◆ CHANNELS_MAX

constexpr uint8_t CHANNELS_MAX { 8 }
staticconstexpr

Definition at line 19 of file audiooutputalsa.cpp.

Referenced by AudioOutputALSA::GetOutputSettings().

◆ OPEN_FLAGS

constexpr int OPEN_FLAGS { SND_PCM_NO_AUTO_RESAMPLE | SND_PCM_NO_AUTO_FORMAT | SND_PCM_NO_AUTO_CHANNELS }
staticconstexpr

Definition at line 22 of file audiooutputalsa.cpp.

Referenced by AudioOutputALSA::GetOutputSettings().

◆ FILTER_FLAGS

constexpr int FILTER_FLAGS { ~(SND_PCM_NO_AUTO_FORMAT) }
staticconstexpr

Definition at line 24 of file audiooutputalsa.cpp.

Referenced by AudioOutputALSA::GetOutputSettings().