On Mon, 28 Jun 2010, javi perez wrote: > I am trying to do a speech recognition system. In the aplay file I would > like to conver the unsigned char buffer > to a float buffer to be able to make comparisons the way I would like. The > floats that I am getting after the conversion are these. > How should I do the conversion from unsigned char to float array? thanks in > advance. Study more C language. Hint: Forget memcpy and use the standard for loop to copy unsigned char samples to float array. Jaroslav ----- Jaroslav Kysela <perex@xxxxxxxx> Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc. _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel