47 #ifndef __EST_WAVE_AUX_H__ 48 #define __EST_WAVE_AUX_H__ 95 void ulaw_to_short(
const unsigned char *ulaw,
short *data,
int length);
96 void alaw_to_short(
const unsigned char *alaw,
short *data,
int length);
97 void uchar_to_short(
const unsigned char *chars,
short *data,
int length);
98 void short_to_char(
const short *data,
unsigned char *chars,
int length);
99 void short_to_ulaw(
const short *data,
unsigned char *ulaw,
int length);
100 void short_to_alaw(
const short *data,
unsigned char *alaw,
int length);
121 const int num_samples,
const int num_channels,
122 const int sample_rate,
A class for storing digital waveforms. The waveform is stored as an array of 16 bit shorts...
int wave_subwave(EST_Wave &subsig, EST_Wave &sig, int offset, int length)
void uchar_to_short(const unsigned char *chars, short *data, int length)
A vector class for floating point numbers. EST_FVector x should be used instead of float *x wherever ...
int wave_extract_channel(EST_Wave &single, const EST_Wave &multi, int channel)
void short_to_ulaw(const short *data, unsigned char *ulaw, int length)
EST_TNamedEnum< EST_sample_type_t > EST_sample_type_map
void short_to_alaw(const short *data, unsigned char *alaw, int length)
void alaw_to_short(const unsigned char *alaw, short *data, int length)
int wave_extract(EST_Wave &part, EST_Wave &sig, EST_Relation &keylab, const EST_String &file)
float abs_error(EST_Wave &a, EST_Wave &b, int channel)
void ulaw_to_short(const unsigned char *ulaw, short *data, int length)
EST_Wave difference(EST_Wave &a, EST_Wave &b)
#define VAL_REGISTER_CLASS_DCLS(NAME, CLASS)
float correlation(EST_Wave &a, EST_Wave &b, int channel)
enum EST_write_status wave_io_save_header(FILE *fp, const int num_samples, const int num_channels, const int sample_rate, const EST_String &stype, const int bo, const EST_String &ftype)
void wave_info(EST_Wave &w)
int wave_divide(EST_WaveList &wl, EST_Wave &sig, EST_Relation &keylab, const EST_String &ext)
EST_write_status write_wave(EST_Wave &sig, const EST_String &in_file, EST_Option &al)
void wave_combine_channels(EST_Wave &combined, const EST_Wave &multi)
void absolute(EST_Wave &a)
void add_waves(EST_Wave &s, const EST_Wave &m)
EST_read_status read_wave(EST_Wave &sig, const EST_String &in_file, EST_Option &al)
EST_Wave error(EST_Wave &ref, EST_Wave &test, int relax)
void differentiate(EST_Wave &sig)
void short_to_char(const short *data, unsigned char *chars, int length)
void reverse(EST_Wave &sig)
float rms_error(EST_Wave &a, EST_Wave &b, int channel)
void invert(EST_Wave &sig)