Olah estou com um codigo q tenho q trabalhar em cima porem nem compilando ele estah axo q he um problema simples de se resolver void modifica_dados_brutos( double*,long);
struct
{
unsigned short formattag;
unsigned short numberofchannels;
unsigned long samplingrate;
unsigned long avgbytespersecond;
unsigned short blockalign;
} wave_chunk;
fread(&wave_chunk,sizeof(wave_chunk),1,fr);
fwrite(&wave_chunk,sizeof(wave_chunk),1,fw);
modifica_dados_brutos(&amostras_no_tempo[0],tamanho_da_janela,wave_chunk.samplingrate);
for(long i=0;i<tamanho_da_janela;i++)
{
waveformdata=(unsigned char)amostras_no_tempo[i];
fwrite(&waveformdata,sizeof(waveformdata),1,fw);
}
}
else if((resolucao==8) && (wave_chunk.numberofchannels==2))
{
unsigned char waveformdata_right;
unsigned char waveformdata_left;
double* amostras_no_tempo_left = new double[tamanho_da_janela];
double* amostras_no_tempo_right = new double[tamanho_da_janela];
for(long i=0;i<tamanho_da_janela;i++)
{
fread(&waveformdata_left,sizeof(waveformdata_left),1,fr);
fread(&waveformdata_right,sizeof(waveformdata_right),1,fr);
amostras_no_tempo_right[i]=(double)waveformdata_right;
amostras_no_tempo_left[i]=(double)waveformdata_left;
}
não colei o codigo todo pois é muito grande o problema esta na declaração da funcao
void modifica_dados_brutos( double*,long);
com a chamada da funcao
modifica_dados_brutos(&amostras_no_tempo[0],tamanho_da_janela,wave_chunk.samplingrate); obrigado