cheewacheewa
Newcomer
- Joined
- Mar 25, 2005
- Messages
- 4
#include "FFT.h"
#define TWO_PI 6.283185
void CopyAudioData(PBYTE pbAudioBuffer, PFLOAT pfRealBuffer,PFLOAT pfImagBuffer, int iNumBytes)
{
int i,n;
short sAudioSample;
for (i=0,n=0; i< iNumBytes; i+=2,n++)
{
// we need to align the data, because it has the wrong byte order
sAudioSample = ((pbAudioBuffer[i+1] << 8) & 0xFF00)|
(pbAudioBuffer & 0x00FF);
pfImagBuffer[n] = 0;
pfRealBuffer[n] = sAudioSample; // this is the correct 16bit SampleValue
}
}
what would this look like converted?Using framework 2.0
At least get me pointed in the right direction
Example...,what the void,,,does that stand for sub?
what are the variables PBYTE,PFLOAT, in vb.net?=Byte and Single?
#define TWO_PI 6.283185
void CopyAudioData(PBYTE pbAudioBuffer, PFLOAT pfRealBuffer,PFLOAT pfImagBuffer, int iNumBytes)
{
int i,n;
short sAudioSample;
for (i=0,n=0; i< iNumBytes; i+=2,n++)
{
// we need to align the data, because it has the wrong byte order
sAudioSample = ((pbAudioBuffer[i+1] << 8) & 0xFF00)|
(pbAudioBuffer & 0x00FF);
pfImagBuffer[n] = 0;
pfRealBuffer[n] = sAudioSample; // this is the correct 16bit SampleValue
}
}
what would this look like converted?Using framework 2.0
At least get me pointed in the right direction
Example...,what the void,,,does that stand for sub?
what are the variables PBYTE,PFLOAT, in vb.net?=Byte and Single?
Last edited: