*((int*)ptr) = m->submodes[*((int*)ptr)]->bits_per_frame;
if (*((int*)ptr)==0) *((int*)ptr) = NB_SUBMODE_BITS+1; else if (m->submodes[*((int*)ptr)]==NULL) *((int*)ptr) = -1; else *((int*)ptr) = m->submodes[*((int*)ptr)]->bits_per_frame;
static void nb_mode_query(void *mode, int request, void *ptr){   SpeexNBMode *m = (SpeexNBMode*)mode;      switch (request)   {   case SPEEX_MODE_FRAME_SIZE:      *((int*)ptr)=m->frameSize;      break;   case SPEEX_SUBMODE_BITS_PER_FRAME:      *((int*)ptr) = m->submodes[*((int*)ptr)]->bits_per_frame;      break;   default:      speex_warning_int("Unknown nb_mode_query request: ", request);   }}