28 Jun
2010
28 Jun
'10
8:06 p.m.
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@perex.cz Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.