NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
Audio Namespace Reference

Classes

class  File
 This class represents a generic audio file with reading and writing functionalities. More...
 
struct  Sample
 Defines a sample in the audio stream, i.e. a single value per channel. More...
 
class  SeekableFile
 This class extends the generic audio file with seeking functionalities as well as possibilities for reading and writing whole blocks of the file. More...
 
class  WavFile
 This class implements the wave file type using PCM encoding (the simplest encoding). Due to its simplicity it is a seekable file type. More...
 
struct  WavFileHeader
 This structure represents the central part of the wave file header in a format, which can be directly written to and read from the wave file. More...
 

Functions

FilegetAudioFileByType (const std::string &sFileName)
 Return a audio file type depending on the file extension or a nullptr if the file type is not supported. More...
 
static double convertFromUnsigned (double val)
 Applies the necessary conversion to obtain a signed floating point value from an unsigned integer. More...
 
static double getMaxVal (uint16_t bitdepth)
 Calculates the maximal value available with the current bitdepth. More...
 

Function Documentation

◆ convertFromUnsigned()

static double Audio::convertFromUnsigned ( double  val)
static

Applies the necessary conversion to obtain a signed floating point value from an unsigned integer.

Parameters
valdouble
Returns
double

Definition at line 35 of file wavfile.cpp.

Referenced by Audio::WavFile::read().

◆ getAudioFileByType()

File * Audio::getAudioFileByType ( const std::string &  sFileName)

Return a audio file type depending on the file extension or a nullptr if the file type is not supported.

Parameters
sFileNameconst std::string&
Returns
File*

Definition at line 34 of file audiofile.cpp.

Referenced by readAudioFile(), seekInAudioFile(), and writeAudioFile().

◆ getMaxVal()

static double Audio::getMaxVal ( uint16_t  bitdepth)
static

Calculates the maximal value available with the current bitdepth.

Parameters
bitdepthuint16_t
Returns
double

Definition at line 49 of file wavfile.cpp.

Referenced by Audio::WavFile::read(), and Audio::WavFile::write().