|
vdr-plugin-drmdevice 2.0.0-46418f1
|
Audio Interface. More...
Classes | |
| class | cAlsaDevice |
| Alsa Interface. More... | |
| class | cAudioStream |
| Audio Interface. More... | |
| class | cAudioProcessor |
| Audio Manipulation. More... | |
| class | cPidController |
| PID Controller. More... | |
| class | cRingbuffer |
| 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 | cAudioStream::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 605 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 141 of file audio.cpp.
References cAlsaDevice::GetChannelLayoutAsArray(), GetFFmpegChannelLayoutAsArray(), L_SOUND, LayoutIsValid(), LayoutsMatch(), LOGDEBUG2, LOGWARNING, and cAudioStream::m_alsa.
Referenced by cAudioStream::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 622 of file alsadevice.cpp.
References alsaToFFmpegChannel(), and cAlsaDevice::m_pPCMHandle.
Referenced by cAudioStream::BuildChannelMapFilter(), and cAlsaDevice::Setup().
|
static |
Put FFmpeg channel layout in a dynamic array of strings.
| layout | current FFmpeg channel layout |
Definition at line 80 of file audio.cpp.
Referenced by cAudioStream::BuildChannelMapFilter().
Check, if the channel layout has channels named "NA" (N/A, silent)
| channelLayout | channel layout |
Definition at line 127 of file audio.cpp.
Referenced by cAudioStream::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 105 of file audio.cpp.
Referenced by cAudioStream::BuildChannelMapFilter().