|
vdr-plugin-softhddevice-drm-gles 1.6.7
|
Audio Interface. More...
Classes | |
| class | cAlsaDevice |
| Alsa Interface. More... | |
| class | cSoftHdAudio |
| Audio Interface. More... | |
| class | cAudioProcessor |
| Audio Manipulation. More... | |
| class | cPidController |
| PID Controller. More... | |
| class | cSoftHdRingbuffer |
| Ringbuffer (FIFO) Implementation. More... | |
Functions | |
| static void | AlsaNoopCallback (__attribute__((unused)) const char *file, __attribute__((unused)) int line, __attribute__((unused)) const char *function, __attribute__((unused)) int err, __attribute__((unused)) const char *fmt,...) |
| Empty log callback. | |
| static const char * | alsaToFFmpegChannel (const char *alsaName) |
| FFmpeg does not have channels called "RL" or "RR" So "rename" Alsas RL (rear left) and RR (rear right) to FFmpegs BL (back left) and BR (back right) to make the channelmap filter parser happy. | |
| static std::vector< std::string > | GetFFmpegChannelLayoutAsArray (const AVChannelLayout &layout) |
| Put FFmpeg channel layout in a dynamic array of strings. | |
| static bool | LayoutsMatch (const std::vector< std::string > &ff, const std::vector< std::string > &alsa) |
| Check, if FFmpeg and Alsa channel layout match. | |
| static bool | LayoutIsValid (const std::vector< std::string > &channelLayout) |
| Check, if the channel layout has channels named "NA" (N/A, silent) | |
| std::vector< std::string > | cAlsaDevice::GetChannelLayoutAsArray (void) |
| Put ALSA channel layout in a dynamic array of strings. | |
| std::string | cSoftHdAudio::BuildChannelMapFilter (const AVChannelLayout &) |
| Build the "|"-separated mappings list for the channelmap filter. | |
Audio Interface.
Handles the audio stream
|
static |
Empty log callback.
Definition at line 30 of file alsadevice.cpp.
Referenced by cAlsaDevice::Init().
FFmpeg does not have channels called "RL" or "RR" So "rename" Alsas RL (rear left) and RR (rear right) to FFmpegs BL (back left) and BR (back right) to make the channelmap filter parser happy.
Definition at line 595 of file alsadevice.cpp.
Referenced by cAlsaDevice::GetChannelLayoutAsArray().
|
private |
Build the "|"-separated mappings list for the channelmap filter.
| layout | current FFmpeg channel layout |
Definition at line 142 of file audio.cpp.
References cAlsaDevice::GetChannelLayoutAsArray(), GetFFmpegChannelLayoutAsArray(), L_SOUND, LayoutIsValid(), LayoutsMatch(), LOGDEBUG2, LOGWARNING, and cSoftHdAudio::m_alsa.
Referenced by cSoftHdAudio::InitFilter().
| std::vector< std::string > cAlsaDevice::GetChannelLayoutAsArray | ( | void | ) |
Put ALSA channel layout in a dynamic array of strings.
| pcmHandle | current Alsa PCM handle |
Definition at line 612 of file alsadevice.cpp.
References alsaToFFmpegChannel(), and cAlsaDevice::m_pPCMHandle.
Referenced by cSoftHdAudio::BuildChannelMapFilter(), and cAlsaDevice::Setup().
|
static |
Put FFmpeg channel layout in a dynamic array of strings.
| layout | current FFmpeg channel layout |
Definition at line 81 of file audio.cpp.
Referenced by cSoftHdAudio::BuildChannelMapFilter().
Check, if the channel layout has channels named "NA" (N/A, silent)
| channelLayout | channel layout |
Definition at line 128 of file audio.cpp.
Referenced by cSoftHdAudio::BuildChannelMapFilter().
|
static |
Check, if FFmpeg and Alsa channel layout match.
| ff | Array of FFmpeg channel layout |
| alsa | Array of Alsa channel layout |
Definition at line 106 of file audio.cpp.
Referenced by cSoftHdAudio::BuildChannelMapFilter().