From: Mikael M. <mik...@tj...> - 2004-11-03 23:05:35
|
Iftikhar Qureshi wrote: > I'm getting error "C2036: 'void *': unknown size" on following call: > > while(total_consumed < e->event.voice.datalen) { > cur = decode_audio(call, fr, > e->event.voice.data+total_consumed,e->event.voice.datalen-total_consumed, > iEncodeType); > > do I have to use any type cast for "e->event.voice.data+total_consumed" ? > > Where can I get "simpleiax.h" ? > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > The following cast should resolve the error: (unsigned char *)e->event.voice.data + total_consumed Apparently you are using IAX1. I tried to compile the CVS version of iaxclient dated 2004-10-15 for IAX1, but it failed with another error message: audio_encode.c: In function `send_encoded_audio': audio_encode.c:177: error: too many arguments to function `iax_send_voice' Do you have any special reasons to use IAX1 instead of IAX2? Mikael Magnusson |