Jump to content
Fórum Script Brasil
  • 0

ERRO:"too many arguments to function


TiRaNo

Question

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652.1k
×
×
  • Create New...