|
Ring Daemon
|
Wrapper class for libswresample. More...
#include <resampler.h>

Public Member Functions | |
| int | resample (const AVFrame *input, AVFrame *output) |
| Resample a frame. | |
| std::shared_ptr< AudioFrame > | resample (std::shared_ptr< AudioFrame > &&in, const AudioFormat &out) |
| Wrapper around resample(AVFrame*, AVFrame*) for convenience. | |
| std::unique_ptr< AudioFrame > | resample (std::unique_ptr< AudioFrame > &&in, const AudioFormat &out) |
| Wrapper around resample(AVFrame*, AVFrame*) for convenience. | |
| Resampler () | |
| ~Resampler () | |
Wrapper class for libswresample.
Definition at line 35 of file resampler.h.
| jami::Resampler::Resampler | ( | ) |
Definition at line 32 of file resampler.cpp.
| jami::Resampler::~Resampler | ( | ) |
Definition at line 37 of file resampler.cpp.
References jami::emitSignal().

Resample a frame.
Resample from @input format to @output format.
NOTE: sample_rate, ch_layout, and format should be set on @output
Definition at line 180 of file resampler.cpp.
References av_frame_free(), jami::emitSignal(), jami::libav_utils::getError(), jami::libav_utils::getFormat(), JAMI_DEBUG, JAMI_ERROR, JAMI_WARNING, resample(), and jami::toString().
Referenced by jami::SpeexAudioProcessor::getProcessed(), jami::RingBuffer::put(), resample(), resample(), and resample().

| std::shared_ptr< AudioFrame > jami::Resampler::resample | ( | std::shared_ptr< AudioFrame > && | in, |
| const AudioFormat & | out | ||
| ) |
Wrapper around resample(AVFrame*, AVFrame*) for convenience.
Definition at line 298 of file resampler.cpp.
References jami::emitSignal(), jami::AudioFormat::nb_channels, resample(), jami::AudioFormat::sample_rate, and jami::AudioFormat::sampleFormat.

| std::unique_ptr< AudioFrame > jami::Resampler::resample | ( | std::unique_ptr< AudioFrame > && | in, |
| const AudioFormat & | out | ||
| ) |
Wrapper around resample(AVFrame*, AVFrame*) for convenience.
Definition at line 284 of file resampler.cpp.
References jami::emitSignal(), jami::AudioFormat::nb_channels, resample(), jami::AudioFormat::sample_rate, and jami::AudioFormat::sampleFormat.
