SLIP
1.4
|
WavReader, inherited from ContainerReader, is a reader for wav audio files. More...
#include <WavReader.hpp>
Public Types | |
typedef Container1d | container_type |
typedef T | value_type |
typedef ContainerReader < Container1d, T, Nb_block > | base |
Public Member Functions | |
void | initialize () |
initialized the reading process. More... | |
void | release () |
release the reading process. More... | |
int | read (container_type &in) |
virtual read function. If Nb_block is more than one, it reads only one container, and returns 0. Else it reads the container and returns 1. If the file data_filename has been completely read (no more block to read), it returns 1. More... | |
std::size_t | get_output_size () const |
Get the output signal size. More... | |
const WAVE_HEADER & | get_header () const |
Get the wav file header. More... | |
Constructors & Destructors | |
WavReader () | |
WavReader (std::string data_filename) | |
virtual | ~WavReader () |
Getters and setters | |
const std::string & | get_data_filename () const |
return the name of the file containing the data to read More... | |
void | set_data_filename (const std::string &data_filename) |
std::size_t | get_nb_block () const |
return the number of splitting blocks of the data More... | |
Protected Attributes | |
std::string | data_filename_ |
WavReader, inherited from ContainerReader, is a reader for wav audio files.
Container1d | should be a 1d Container with only one component. |
T | the type of the container data. |
Nb_block | is the number of containers to create (>1 if one want to split the input data into different containers, default is 1). |
Definition at line 37 of file WavReader.hpp.
typedef ContainerReader<Container1d,T,Nb_block> slip::WavReader< Container1d, T, Nb_block >::base |
Definition at line 41 of file WavReader.hpp.
typedef Container1d slip::WavReader< Container1d, T, Nb_block >::container_type |
Definition at line 39 of file WavReader.hpp.
typedef T slip::WavReader< Container1d, T, Nb_block >::value_type |
Definition at line 40 of file WavReader.hpp.
|
inline |
Default constructor
Definition at line 51 of file WavReader.hpp.
|
inline |
Constructor with parameters.
data_filename | is the name of the file containing the data to read |
Definition at line 62 of file WavReader.hpp.
|
inlinevirtual |
|
inherited |
return the name of the file containing the data to read
|
inline |
|
inherited |
return the number of splitting blocks of the data
|
inline |
|
inline |
initialized the reading process.
Definition at line 151 of file WavReader.hpp.
|
virtual |
virtual read function. If Nb_block is more than one, it reads only one container, and returns 0. Else it reads the container and returns 1. If the file data_filename has been completely read (no more block to read), it returns 1.
in | is the container to fill. Warning, the container should be a 1d container with [] operator, resize() and size() methods defined. |
Implements slip::ContainerReader< Container1d, T, Nb_block >.
Definition at line 278 of file WavReader.hpp.
void slip::WavReader< Container1d, T, Nb_block >::release | ( | ) |
release the reading process.
Definition at line 388 of file WavReader.hpp.
|
inherited |
data_filename | is the name of the file containing the data to read |
|
protectedinherited |
Definition at line 100 of file ContainerReader.hpp.