pWav->totalPCMFrameCount=(((blockCount*(fmt.blockAlign-(6*pWav->channels)))*2))/fmt.channels;/* x2 because two samples per byte. */
/* Make sure any trailing partial block is accounted for. */
if((blockCount*fmt.blockAlign)<dataChunkSize){
blockCount+=1;
}
/* We decode two samples per byte. There will be blockCount headers in the data chunk. This is enough to know how to calculate the total PCM frame count. */
/* Make sure any trailing partial block is accounted for. */
if((blockCount*fmt.blockAlign)<dataChunkSize){
blockCount+=1;
}
/* We decode two samples per byte. There will be blockCount headers in the data chunk. This is enough to know how to calculate the total PCM frame count. */