HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
FFmpegAudioShared.h File Reference
#include "HephAudioShared.h"
#include "AudioFormatInfo.h"
#include <string>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/opt.h>
#include <libswresample/swresample.h>

Go to the source code of this file.

Macros

#define HEPHAUDIO_FFMPEG_GET_ERROR_MESSAGE(errorCode)   HephAudio::FFmpegGetErrorMessage(errorCode)
 
#define HEPHAUDIO_FFMPEG_INTERNAL_SAMPLE_FMT   AV_SAMPLE_FMT_FLT
 

Functions

std::string HephAudio::FFmpegGetErrorMessage (int errorCode)
 
AVCodecID HephAudio::CodecIdFromAudioFormatInfo (const AudioFormatInfo &audioFormatInfo)
 
AVSampleFormat HephAudio::ToAVSampleFormat (const AVCodec *avCodec, const AudioFormatInfo &formatInfo)
 
AVSampleFormat HephAudio::ToAVSampleFormat (const AudioFormatInfo &formatInfo)
 
AVChannelLayout HephAudio::ToAVChannelLayout (const AudioChannelLayout &audioChannelLayout)
 
AudioChannelLayout HephAudio::FromAVChannelLayout (const AVChannelLayout &avChannelLayout)
 
uint32_t HephAudio::GetClosestSupportedSampleRate (const AVCodec *avCodec, uint32_t targetSampleRate)
 
uint32_t HephAudio::GetClosestSupportedSampleRate (const AudioFormatInfo &formatInfo)