HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
interface for the audio encoders. More...
#include <IAudioEncoder.h>
Public Member Functions | |
virtual | ~IAudioEncoder ()=default |
virtual void | ChangeFile (const std::filesystem::path &newAudioFilePath, const AudioFormatInfo &outputFormatInfo, bool overwrite)=0 |
virtual void | CloseFile ()=0 |
virtual bool | IsFileOpen () const =0 |
virtual void | Encode (const AudioBuffer &bufferToEncode)=0 |
virtual void | Encode (const AudioBuffer &inputBuffer, EncodedAudioBuffer &outputBuffer)=0 |
virtual void | Transcode (const EncodedAudioBuffer &inputBuffer, EncodedAudioBuffer &outputBuffer)=0 |
Protected Attributes | |
std::filesystem::path | filePath |
interface for the audio encoders.
|
virtualdefault |
releases the resources and destroys the instance.
|
pure virtual |
changes the file that will store the encoded audio data.
outputFormatInfo | target format. |
overwrite | indicates whether to write over the file if it already exists. |
Implemented in HephAudio::FFmpegAudioEncoder.
|
pure virtual |
closes the file and releases the resources allocated for encoding.
Implemented in HephAudio::FFmpegAudioEncoder.
|
pure virtual |
checks whether a file is currently open.
Implemented in HephAudio::FFmpegAudioEncoder.
|
pure virtual |
encodes the provided audio data and writes it to the file.
Implemented in HephAudio::FFmpegAudioEncoder.
|
pure virtual |
encodes the provided audio data and writes it to the outputBuffer.
inputBuffer | the buffer that contains the audio data that will be encoded. |
outputBuffer | the buffer that will store the encoded audio data. |
Implemented in HephAudio::FFmpegAudioEncoder.
|
pure virtual |
transcodes the provided audio data and writes it to the outputBuffer.
inputBuffer | the buffer that contains the audio data that will be transcoded. |
outputBuffer | the buffer that will store the transcoded audio data. |
Implemented in HephAudio::FFmpegAudioEncoder.
|
protected |
path of the file that will store the encoded audio data.