RADLib
RADical C++ application framework
RADMedia::AudioDecoder Class Reference

Whole-file audio decoder facade. More...

#include <RADMedia.h>

Static Public Member Functions

static bool supportsExtension (const std::string &path)
 Returns true when path has an extension RADMedia can decode. More...
 
static std::optional< AudioBufferdecodeFile (const std::string &path, std::string *error=nullptr)
 Decodes path into Float32 interleaved samples. More...
 
static std::vector< std::string > supportedExtensions ()
 Returns supported audio file extensions. More...
 

Detailed Description

Whole-file audio decoder facade.

Member Function Documentation

◆ decodeFile()

static std::optional<AudioBuffer> RADMedia::AudioDecoder::decodeFile ( const std::string &  path,
std::string *  error = nullptr 
)
static

Decodes path into Float32 interleaved samples.

◆ supportedExtensions()

static std::vector<std::string> RADMedia::AudioDecoder::supportedExtensions ( )
static

Returns supported audio file extensions.

◆ supportsExtension()

static bool RADMedia::AudioDecoder::supportsExtension ( const std::string &  path)
static

Returns true when path has an extension RADMedia can decode.


The documentation for this class was generated from the following file: