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 imported data from wav file

Hello:

I am trying to import a frame of data from the wav file of mp3 player to a temporary buffer. But when I checked the buffer, why the digit looked like this:

What I want to import is the simple digit from matlab (Matlab has converted the digit into wav format)

This is what I have written:

Here the temp is Uint32 format. I need to do the type conversion by applying (float) in front of temp and then pass the values from temp

to the sample buffer.

 

Finally I checked values in the buffer as it is shown in first picture.  But the result is not what I anticipated.

 

Could anybody give me some hints?

 

thanks a lot

 

Yu