16bit, 2 channels
The sound is a music with all kinds of frequencies.
[source lang="cpp"]short p1[2]; //array were a sample of sound will be, right and left sound.for(int i=0; i < 1000000 ;i++) { fread(&p1,sizeof(short),2,fp); }[/source]
so after this i am debuging the for loop, checking the value of p1[0] and p1[1]
Logically the value should be between -32768 and 32767 but it just goes between like -67 to 20.
why is that?
I made the soundfile with code and i can play it in windows media, so i know the data should have a -32768 or 32767 somehere but it doesnt.
OOPS posted in game programming it was for general programming.how can i move it.
Edited by lomateron, 24 June 2012 - 04:16 PM.






