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

Classes

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

Typedefs

typedef MHAPlugin::config_t< level_adapt_tlevel_adaptor
 
typedef MHAPlugin::plugin_t< sndfile_twave_reader
 

Enumerations

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

Functions

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

Typedef Documentation

◆ level_adaptor

◆ wave_reader

Enumeration Type Documentation

◆ addsndfile_resampling_mode_t

Specifies the resampling mode in resampled_soundfile_t.

Enumerator
DONT_RESAMPLE_PERMISSIVE 
DONT_RESAMPLE_STRICT 

Do not resample, if the sample rate of the MHA differs from the sample rate of the sound file, raise an error.

DO_RESAMPLE 

Resample.

Function Documentation

◆ resampled_num_frames()

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