Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

AudioWavFile.C File Reference


Detailed Description

File I/O on audio .wav files

Definition in file AudioWavFile.C.

#include "Audio/AudioWavFile.H"
#include "Util/log.H"
#include <cstdio>

Include dependency graph for AudioWavFile.C:

Go to the source code of this file.

Functions

template<class T>
void writeAudioWavFile (const std::string &fname, const AudioBuffer< T > &buf)
 Write an audio .wav file.
template<class T>
void writeAudioWavFile (const std::string &fname, const std::vector< AudioBuffer< T > > &buf)
 Write an audio .wav file.
template<class T>
void readAudioWavFile (const std::string &fname, AudioBuffer< T > &buf)
 Read an audio .wav file.
template void writeAudioWavFile (const std::string &fname, const std::vector< AudioBuffer< byte > > &buf)
template void writeAudioWavFile (const std::string &fname, const std::vector< AudioBuffer< uint16 > > &buf)
template void writeAudioWavFile (const std::string &fname, const std::vector< AudioBuffer< int16 > > &buf)
template void writeAudioWavFile (const std::string &fname, const AudioBuffer< byte > &buf)
template void writeAudioWavFile (const std::string &fname, const AudioBuffer< uint16 > &buf)
template void writeAudioWavFile (const std::string &fname, const AudioBuffer< int16 > &buf)
template void readAudioWavFile (const std::string &fname, AudioBuffer< byte > &buf)
template void readAudioWavFile (const std::string &fname, AudioBuffer< uint16 > &buf)
template void readAudioWavFile (const std::string &fname, AudioBuffer< int16 > &buf)


Function Documentation

template<class T>
void readAudioWavFile const std::string fname,
AudioBuffer< T > &  buf
 

Read an audio .wav file.

Read a data buffer from file as a basic uncompressed .wav file. Caveat: one needs to know the number of bits/sample beforehand so that one will call the correct template function...

Definition at line 115 of file AudioWavFile.C.

References AudioBuffer< T >::getDataPtr(), LDEBUG, LFATAL, NO_INIT, and PLFATAL.

template<class T>
void writeAudioWavFile const std::string fname,
const std::vector< AudioBuffer< T > > &  buf
 

Write an audio .wav file.

Write a series of data buffers to a single file as a basic uncompressed .wav file.

Parameters:
fname name of the .wav file to be written.
buf buffers containing the audio samples.

Definition at line 57 of file AudioWavFile.C.

References buf, i, LDEBUG, LINFO, and PLFATAL.

template<class T>
void writeAudioWavFile const std::string fname,
const AudioBuffer< T > &  buf
 

Write an audio .wav file.

Write a data buffer to file as a basic uncompressed .wav file.

Parameters:
fname name of the .wav file to be written.
buf buffer containing the audio samples.

Definition at line 47 of file AudioWavFile.C.

Referenced by audiorecorder(), main(), submain(), and writeAudioWavFile().


Generated on Sun Nov 22 13:43:27 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4