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 decoders. More...
#include <IAudioDecoder.h>
Public Member Functions | |
virtual | ~IAudioDecoder ()=default |
virtual void | ChangeFile (const std::filesystem::path &newFilePath)=0 |
virtual void | CloseFile ()=0 |
virtual bool | IsFileOpen () const =0 |
virtual AudioFormatInfo | GetOutputFormatInfo () const =0 |
virtual size_t | GetFrameCount () const =0 |
virtual bool | Seek (size_t frameIndex)=0 |
virtual AudioBuffer | Decode ()=0 |
virtual AudioBuffer | Decode (size_t frameCount)=0 |
virtual AudioBuffer | Decode (size_t frameIndex, size_t frameCount)=0 |
virtual AudioBuffer | Decode (const EncodedAudioBuffer &encodedBuffer)=0 |
Protected Attributes | |
std::filesystem::path | filePath |
interface for the audio decoders.
|
virtualdefault |
releases the resources and destroys the instance.
|
pure virtual |
changes the decoded file.
Implemented in HephAudio::FFmpegAudioDecoder.
|
pure virtual |
closes the file that's being decoded and releases the resources allocated for decoding.
Implemented in HephAudio::FFmpegAudioDecoder.
|
pure virtual |
checks whether a file is currently open for decoding.
Implemented in HephAudio::FFmpegAudioDecoder.
|
pure virtual |
gets the AudioFormatInfo the audio file will be decoded to.
Implemented in HephAudio::FFmpegAudioDecoder.
|
pure virtual |
gets the number of audio frames the audio file contains.
Implemented in HephAudio::FFmpegAudioDecoder.
|
pure virtual |
seeks an audio frame in the file.
frameIndex | index of the audio frame. |
Implemented in HephAudio::FFmpegAudioDecoder.
|
pure virtual |
decodes the audio file.
Implemented in HephAudio::FFmpegAudioDecoder.
|
pure virtual |
decodes the audio file.
frameCount | number of frames to decode. |
Implemented in HephAudio::FFmpegAudioDecoder.
|
pure virtual |
decodes the specified portion of the audio file.
frameIndex | index of the first frame that will be decoded. |
frameCount | number of frames to decode. |
Implemented in HephAudio::FFmpegAudioDecoder.
|
pure virtual |
decodes the encoded audio data in the memory.
encodedBuffer | the buffer that contains the encoded audio data. |
Implemented in HephAudio::FFmpegAudioDecoder.
|
protected |
path of the file that's being decoded.