assert(0);
ADM_assert(0);
AVDMProcessAudioStream *buildAudioFilter(AVDMGenericAudioStream *currentaudiostream,				uint32_t starttime, uint32_t size){AVDMProcessAudioStream *lastFilter=NULL;	// if audio is set to copy, we just return the first filter	if(!audioProcessMode)	{ 			lastFilter = new AVDMProcessAudio_Null(currentaudiostream,					    starttime, size);    			filtercount = 0;    			lastFilter = lastFilter;    			filters[filtercount++] = lastFilter;			return lastFilter;	}// else we build the full chain			buildInternalAudioFilter(currentaudiostream,starttime, size);			lastFilter=filters[filtercount-1];// and add encoder...//_______________________________________________________uint8_t init;		switch(activeAudioEncoder)		{		case 	AUDIOENC_NONE:			// If we are dealing with big endian and using raw wav			// we have to swap the endianness 			#ifdef ADM_BIG_ENDIAN						 				lastFilter = new AVDMProcessAudio_LEBE(lastFilter); 				filters[filtercount++] = lastFilter;			#endif			break;#ifdef HAVE_LIBMP3LAME		case AUDIOENC_MP3:        		{	  		AVDMProcessAudio_Lame *plame = NULL;		  		plame = new AVDMProcessAudio_Lame(lastFilter);				printf("\n Init of lame with bitrate %d , mode %d ",							 audioMP3bitrate, audioMP3mode);			  	init = plame->initLame(0, 	(uint32_t) audioMP3mode,			      					(uint32_t) audioMP3bitrate);			  	if (init)			    	{						lastFilter = plame;						filters[filtercount++] = lastFilter;				  } else			    	{						delete plame;						GUI_Alert("Lame initialization failed\n"							" NOT ACTIVATED");			    	}			   }		    break;#endif//______________________________________________________		case  AUDIOENC_MP2:        {	  		AVDMProcessAudio_FFmp2 *mp2enc = NULL;			  // First get parameters from user			  mp2enc = new AVDMProcessAudio_FFmp2(lastFilter);			  printf("\n Init of FFmpeg with bitrate %d , mode %d ",				 audioMP3bitrate, audioMP3mode);			  init = mp2enc->init((uint32_t) audioMP3bitrate);			  if (init)			    {						lastFilter = mp2enc;						filters[filtercount++] = lastFilter;				  } else			    {			    		delete mp2enc;					GUI_Alert("FF MP2 initialization failed\n NOT ACTIVATED");			    }			    }    	  break;	  case  AUDIOENC_2LAME:        	{	  		AVDMProcessAudio_LibToolame *toolame_enc = NULL;			  toolame_enc = new AVDMProcessAudio_LibToolame(lastFilter);			  printf("\n Init of toolame with bitrate %d , mode %d ",				 audioMP3bitrate, audioMP3mode);			  init = toolame_enc->init((uint32_t)audioMP3mode,			  			(uint32_t) audioMP3bitrate);			if (init)			{				lastFilter = toolame_enc;				filters[filtercount++] = lastFilter;			} else			{				delete toolame_enc;				GUI_Alert("LibToolame initialization failed\n"					" NOT ACTIVATED");			}		}    	  break;       case  AUDIOENC_AC3:        	{	  		AVDMProcessAudio_FFAC3 *ac3enc = NULL;			  // First get parameters from user			  ac3enc = new AVDMProcessAudio_FFAC3(lastFilter);			  printf("\n Init of FFmpeg AC3 with bitrate %d , mode %d ",				 audioMP3bitrate, audioMP3mode);			  init = ac3enc->init((uint32_t) audioMP3bitrate);			  if (init)			    {						lastFilter = ac3enc;						filters[filtercount++] = lastFilter;				  } else			    {			    		delete ac3enc;					GUI_Alert("FF AC3enc initialization failed\n NOT ACTIVATED");			    }		  }    	  break;      default:      assert(0);  }//_______________________________________________________    currentaudiostream->beginDecompress();    return lastFilter;}