This patch is part of a series of patches for speech-tools for Debian GNU/Linux, which primarily fix build errors with GCC 4.3 and newer. Index: b/speech_class/EST_wave_utils.cc =================================================================== --- a/speech_class/EST_wave_utils.cc +++ b/speech_class/EST_wave_utils.cc @@ -53,7 +53,9 @@ #include "EST_error.h" static short st_ulaw_to_short(unsigned char ulawbyte); +static short st_alaw_to_short(unsigned char alawbyte); static unsigned char st_short_to_ulaw(short sample); +static unsigned char st_short_to_alaw(short sample); /* * This table is @@ -202,6 +204,16 @@ } +void short_to_alaw(const short *data,unsigned char *alaw,int length) +{ + /* Convert alaw to shorts */ + int i; + + for (i=0; i