This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Question about the data type of the vector storing voice signal

Hello:

   Since I want to use a buffer to store the voice signal from outside mp3 source, I need to define this buffer as float point. (The sample is not integer).

 

   I wrote C code to create a buffer and try to output five decimal digits.  But why the DSK could not output these five decimal numbers?

 

 

Since I forgot some syntax of C language, I doubt my error is at "printf" or float scr[5]?

 

If you know the answer, could you please tell me how to correctly establish the buffer?

 

Thanks a lot

 

YU

 

  • Yu Zhang39 said:

    printf resides in the stdio module.

    Instead of

    #include <string.h>

    try

    #include <stdio.h>

  • Hi,

    Thanks for your post.

    Could you please post us the error message which is popping up, so that, we could help  you better?

    I think, the suggestion of one other community member from the above post of using #include <stdio.h> in your code would fix your issue, I guess. Please try it.

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question

    -------------------------------------------------------------------------------------------------------