[Speex-dev] Error in pcm_wrapper.c release 1.1.12

Mattia Mazzola mattia.mazzola at area.it
Tue Apr 4 00:58:48 PDT 2006


Please, I need your help!
I'm not able to compile....

typedef struct {
} PCMMode;

static PCMMode ;

int pcm_mode_query(const void *mode, int request, void *ptr)
{
   /*const PCMMode *m = (const PCMMode*)mode;*/
   
   switch (request)
   {
      default:
         speex_warning_int("Unknown nb_mode_query request: ", request);
         return -1;
   }
   return 0;
}
/* Default mode for narrowband */
const SpeexMode pcm_wrapper_mode = {
   &pcmmode,
   pcm_mode_query,
   "PCM",
   0,
   4,
   &pcm_encoder_init,
   &pcm_encoder_destroy,
   &pcm_encode,
   &pcm_decoder_init,
   &pcm_decoder_destroy,
   &pcm_decode,
   &pcm_encoder_ctl,
   &pcm_decoder_ctl,
};

I have 2 errors:
- size of 'struct' is unknow or zero
- udefined symbol pcmmode

Thanks,
Mattia.


More information about the Speex-dev mailing list