The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
mhasndfile.cpp File Reference

Functions

void write_wave (const mha_wave_t &sig, const char *fname, const float &srate, const int &format)
 
unsigned int validator_channels (std::vector< int > channel_map, unsigned int channels)
 
unsigned int validator_length (unsigned int maxlen, unsigned int frames, unsigned int startpos)
 

Function Documentation

◆ write_wave()

void write_wave ( const mha_wave_t sig,
const char *  fname,
const float &  srate,
const int &  format 
)

◆ validator_channels()

unsigned int validator_channels ( std::vector< int >  channel_map,
unsigned int  channels 
)

◆ validator_length()

unsigned int validator_length ( unsigned int  maxlen,
unsigned int  frames,
unsigned int  startpos 
)