21 AVFormatContext* avFormatContext;
22 AVIOContext* avIoContext;
24 AVCodecContext* avCodecContext;
25 SwrContext* swrContext;
58 static void Transcode(
const std::filesystem::path& inputFilePath,
const std::filesystem::path& outputFilePath,
bool overwrite);
59 static void Transcode(
const std::filesystem::path& inputFilePath,
const std::filesystem::path& outputFilePath,
AudioFormatInfo outputFormatInfo,
bool overwrite);
62 void OpenFile(
const std::filesystem::path& filePath,
const AudioFormatInfo& outputFormatInfo,
bool overwrite);
#define HEPH_API
Definition HephShared.h:132
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
stores encoded audio data.
Definition EncodedAudioBuffer.h:15
implements audio encoding via FFmpeg.
Definition FFmpegAudioEncoder.h:18
FFmpegAudioEncoder(FFmpegAudioEncoder &&rhs) noexcept
void Encode(const AudioBuffer &inputBuffer, EncodedAudioBuffer &outputBuffer) override
void ChangeFile(const std::filesystem::path &newAudioFilePath, const AudioFormatInfo &outputFormatInfo, bool overwrite) override
void Transcode(const EncodedAudioBuffer &inputBuffer, EncodedAudioBuffer &outputBuffer) override
void Encode(const AudioBuffer &bufferToEncode) override
void CloseFile() override
bool IsFileOpen() const override
FFmpegAudioEncoder(const std::filesystem::path &filePath, const AudioFormatInfo &outputFormatInfo, bool overwrite)
interface for the audio encoders.
Definition IAudioEncoder.h:16