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

Classes

class  addsndfile::waveform_proxy_t
 Class helps to specify which instance of MHASignal_waveform_t parent instance is meant in resampled_soundfile_t. More...
 
class  addsndfile::resampled_soundfile_t
 Reads sound from file and resamples it if necessary and wanted. More...
 
class  addsndfile::sndfile_t
 
class  addsndfile::level_adapt_t
 
class  addsndfile::addsndfile_if_t
 

Namespaces

 addsndfile
 

Macros

#define DEBUG(x)   std::cerr << __FILE__ << ":" << __LINE__ << " " #x "=" << x << std::endl
 

Typedefs

typedef MHAPlugin::config_t< level_adapt_t > addsndfile::level_adaptor
 
typedef MHAPlugin::plugin_t< sndfile_t > addsndfile::wave_reader
 

Enumerations

enum  addsndfile::addsndfile_resampling_mode_t { addsndfile::DONT_RESAMPLE_PERMISSIVE , addsndfile::DONT_RESAMPLE_STRICT , addsndfile::DO_RESAMPLE }
 Specifies the resampling mode in resampled_soundfile_t. More...
 

Functions

static unsigned addsndfile::resampled_num_frames (unsigned num_source_frames, float source_rate, float target_rate, addsndfile_resampling_mode_t resampling_mode)
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG (   x)    std::cerr << __FILE__ << ":" << __LINE__ << " " #x "=" << x << std::endl