|
void | initialize (const WAVE_HEADER &wave, std::size_t output_audio_size) |
| initialized the writing process. Has to be called before the first write() call of a given array. More...
|
|
void | initialize (short sample_rate, short byte_per_sample, std::size_t output_audio_size) |
| initialized the writing process. Has to be called before the first write() call of a given array. More...
|
|
void | release () |
| release the writing process. Has to be called when an audio file has been fully written. More...
|
|
int | write (const container_type &data) |
| write function. This function write the data within the output file after the previous one. When last is set to true, the output file is closed. More...
|
|
void | set_header (const WAVE_HEADER &wave) |
| Set the wav header file. More...
|
|
const WAVE_HEADER & | get_header () const |
| Get the wav file header. More...
|
|
|
| WavWriter () |
|
| WavWriter (std::string output_filename, const WAVE_HEADER &wave, std::size_t output_audio_size) |
|
| WavWriter (std::string output_filename, short sample_rate, short byte_per_sample, std::size_t output_audio_size) |
|
virtual | ~WavWriter () |
|
|
const std::string & | get_output_filename () const |
| return the output file name. More...
|
|
void | set_output_filename (const std::string &output_filename) |
| set the output file name. More...
|
|
template<class Container1d, typename T>
class slip::WavWriter< Container1d, T >
WavWriter is the wave array writer.
- Version
- Fluex 1.0
- Date
- 2013/04/18
- Author
- Denis Arrivault <denis.arrivault_AT_inria.fr>
- Parameters
-
Container1d | is the type of the containers that will be written in the wav file. It should be a one dimensional container with [] operator, begin(), end() and size() methods defined. |
T | the type of the container data. |
- Note
- only 8,16 and 32 bits/sample format could be written. If more than one channel is specified in the header, the container will be duplicated on each channel.
- Examples:
- wav_file_io.cpp.
Definition at line 35 of file WavWriter.hpp.
template<class Container1d , typename T >
write function. This function write the data within the output file after the previous one. When last is set to true, the output file is closed.
- Parameters
-
data | is the audio container to save. Warning, the container should be a 1d container with [] operator, begin(), end() and size() methods defined. |
- Returns
- false if the file has been completely filled.
- Note
- only 8,16 and 32 bits/sample are valid.
Implements slip::ContainerWriter< Container1d, T >.
Definition at line 308 of file WavWriter.hpp.