|
vdr-plugin-softhddevice-drm-gles 1.4.0
|
Audio and alsa module class. More...
#include <algorithm>#include <stdint.h>#include <math.h>#include <libintl.h>#include <alsa/asoundlib.h>#include <pthread.h>#include <libavcodec/avcodec.h>#include <libavfilter/avfilter.h>#include <libavfilter/buffersink.h>#include <libavfilter/buffersrc.h>#include <libavutil/channel_layout.h>#include <libavutil/opt.h>#include "misc.h"#include "iatomic.h"#include "ringbuffer.h"#include "audio.h"#include "videorender.h"#include "codec_audio.h"#include "videostream.h"#include "logger.h"#include "threads.h"
Go to the source code of this file.
Functions | |
| static void | ReorderAudioFrame (uint16_t *buf, int size, int channels) |
| Reorder audio frame. More... | |
| 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. More... | |
Audio and alsa module class.
This file defines cSoftHdAudio , which holds all functions we need to deal with audio, e.g.handling the audio stream and sending it to hardware.
AGPLv3
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
Definition in file audio.cpp.
|
static |
Empty log callback.
Definition at line 1541 of file audio.cpp.
Referenced by cSoftHdAudio::AlsaInit().
|
static |
Reorder audio frame.
ffmpeg L R C Ls Rs -> alsa L R Ls Rs C ffmpeg L R C LFE Ls Rs -> alsa L R Ls Rs C LFE ffmpeg L R C LFE Ls Rs Rl Rr -> alsa L R Ls Rs C LFE Rl Rr
| buf[IN,OUT] | sample buffer |
| size | size of sample buffer in bytes |
| channels | number of channels interleaved in sample buffer |
Definition at line 124 of file audio.cpp.
Referenced by cSoftHdAudio::EnqueueFrame().