0
0

Hi there,

Thanks for all the help you have provided so far. At this point I can record samples and save them to a wave file. Right now i would like see what the sample look like so I load the wavefile samples into an array.
I get really huge numbers e.g 388080. I an the part of my code that does this below, my goal is to ppass the area to the intel primitives for fft

my questions are:

1 am I getting the samples into the array correctly

2 how do u print them out correctly

3 should they be so big and if so what do they mean.

Thanks a bunch.

FSOUND_Record_Stop();



                SaveToWav(samp);
                channel = FSOUND_PlaySound(FSOUND_FREE, samp);


            samp1 = FSOUND_Sample_Load(FSOUND_FREE, "record.wav",FSOUND_NORMAL, 0, 0);
            length = FSOUND_Sample_GetLength(samp1);

            if(FSOUND_Sample_Lock(samp1,0,length,&ptr1,&ptr2,&len1,&len2) != TRUE)            
            sndPlaySound(L"500RT.wav",SND_ASYNC);
            buffer = (Ipp16sc *) ptr1;
            FSOUND_Sample_Unlock(samp1,ptr1,ptr2,len1,len2);


for (i =0; i < 150; i++){

            szID [i] = (short *) buffer[i];

            wsprintf(szID,L"%s blah bla %d \r\n  ", szID, buffer[i]);       
            SendDlgItemMessageW(hDlg,IDC_SPEC,WM_SETTEXT,0,(LPARAM) (LPCTSTR )szID);
                }
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.