|
ape
0.5.0
Audio Programming Environment
|
Represents a loaded audio file from disk, as a umatrix More...
#include <audiofile.h>
Public Member Functions | |
| AudioFile (const char *relativePath) | |
| Load the file into memory, entirely. More... | |
| operator bool () const noexcept | |
Test whether this contains a valid audio file with valid audio data
| |
| bool | loadedOk () const noexcept |
| Test whether the file was technically loaded okay. More... | |
| double | sampleRate () const noexcept |
| Returns the original sample rate of this file More... | |
| const char * | name () const noexcept |
| Returns the local file name of this file More... | |
Public Member Functions inherited from ape::umatrix< const float > | |
| umatrix (const float *const *data, std::size_t channelsOrRows, std::size_t samplesOrColumns) | |
| Construct from a pointer array. More... | |
| uarray< const float > | operator[] (std::size_t row) const CPPAPE_NOEXCEPT_IF_RELEASE |
| Access the row in the matrix. More... | |
| iterator | begin () const noexcept |
| Retrieve an iterator that can enumerate channels contained in this matrix. More... | |
| iterator | end () const noexcept |
Retrieve an iterator pointing to one past the last channel in this matrix.
| |
| std::size_t | samples () const noexcept |
| std::size_t | channels () const noexcept |
| std::size_t | rows () const noexcept |
| |
| std::size_t | columns () const noexcept |
| |
| auto | pointers () |
| Returns a possibly cv-qualified T * const* More... | |
| const auto | pointers () const noexcept |
| operator umatrix< const const float > () const noexcept | |
| Implicit conversion operator to a constant read-only version of this umatrix More... | |
Protected Member Functions | |
| AudioFile (const APE_AudioFile &audioFile) | |
Static Protected Member Functions | |
| static APE_AudioFile | loadFile (const char *relativePath, double sampleRate=APE_SampleRate_Retain) |
Protected Attributes | |
| double | preciseLength |
Protected Attributes inherited from ape::umatrix< const float > | |
| const float *const * | data |
| std::size_t | numRows |
| std::size_t | numColumns |
Additional Inherited Members | |
Public Types inherited from ape::umatrix< const float > | |
| typedef const float | value_type |
Represents a loaded audio file from disk, as a umatrix
|
inline |
Load the file into memory, entirely.
| relativePath | The path is taken to be relative to the directory the current script is located in |
|
inlineprotected |
|
inlinenoexcept |
Test whether the file was technically loaded okay.
|
inlinestaticprotected |
|
inlinenoexcept |
Returns the local file name of this file
|
inlineexplicitnoexcept |
Test whether this contains a valid audio file with valid audio data
|
inlinenoexcept |
Returns the original sample rate of this file
|
protected |
1.8.16