MythTV  master
Macros | Functions
audiooutputalsa.cpp File Reference
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <sys/time.h>
#include "config.h"
#include <QFile>
#include "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 CHANNELS_MIN   1
 
#define CHANNELS_MAX   8
 
#define OPEN_FLAGS
 
#define FILTER_FLAGS   ~(SND_PCM_NO_AUTO_FORMAT)
 
#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 _ReorderSmpteToAlsa (AudioDataType *buf, uint frames, uint extrach)
 
static void ReorderSmpteToAlsa (void *buf, uint frames, AudioFormat format, uint extrach)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("ALSA: ")

Definition at line 15 of file audiooutputalsa.cpp.

◆ assert

#define assert (   x)

Definition at line 20 of file audiooutputalsa.cpp.

◆ CHANNELS_MIN

#define CHANNELS_MIN   1

Definition at line 22 of file audiooutputalsa.cpp.

◆ CHANNELS_MAX

#define CHANNELS_MAX   8

Definition at line 23 of file audiooutputalsa.cpp.

◆ OPEN_FLAGS

#define OPEN_FLAGS
Value:
(SND_PCM_NO_AUTO_RESAMPLE|SND_PCM_NO_AUTO_FORMAT| \
SND_PCM_NO_AUTO_CHANNELS)

Definition at line 25 of file audiooutputalsa.cpp.

◆ FILTER_FLAGS

#define FILTER_FLAGS   ~(SND_PCM_NO_AUTO_FORMAT)

Definition at line 28 of file audiooutputalsa.cpp.

◆ AERROR

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

Definition at line 30 of file audiooutputalsa.cpp.

◆ CHECKERR

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

Definition at line 31 of file audiooutputalsa.cpp.

Function Documentation

◆ _ReorderSmpteToAlsa()

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

Definition at line 515 of file audiooutputalsa.cpp.

Referenced by ReorderSmpteToAlsa().

◆ ReorderSmpteToAlsa()

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

Definition at line 534 of file audiooutputalsa.cpp.

Referenced by AudioOutputALSA::WriteAudio().