search for: celt_strerror

Displaying 1 result from an estimated 1 matches for "celt_strerror".

2010 Mar 03
2
uint decode error on visual studio...
...* pcmbuffer=(celt_int16*)malloc(sizeof(celt_int16)*gFrameSize*gNrChannels); unsigned char* encodedbuffer=(unsigned char*)malloc(bytes_per_packet); CELTMode* mode=celt_mode_create(gSampleRate,gFrameSize,&error); if(mode==NULL || error!=CELT_OK) { printf("ERROR: celt_mode_create %s\n",celt_strerror(error)); return -1; } int offset=0; int res=0; CELTEncoder* encoder=celt_encoder_create(mode,gNrChannels,&error); if(encoder==NULL || error!=CELT_OK) { printf("ERROR: celt_encoder_create %s\n",celt_strerror(error)); return -1; } while((res=fread(pcmbuffer,sizeof(celt_int16)*gFra...