[alsa-devel] newbie, arecord

Jaroslav Kysela perex at perex.cz
Mon Jun 28 20:06:37 CEST 2010


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 at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.



More information about the Alsa-devel mailing list