if(aviaudiostream==currentaudiostream) currentaudiostream=NULL;
void A_audioTrack( void ){        uint32_t nb,*infos;        AudioSource old,nw;                uint8_t r=0;        uint32_t oldtrack,newtrack;        if(!video_body->getAudioStreamsInfo(0,&nb, &infos))        {                GUI_Alert("Get tracks info failed");                return ;        }        newtrack=oldtrack=video_body->getCurrentAudioStreamNumber(0);        nw=old=currentAudioSource;        r=DIA_audioTrack(&nw, &newtrack,nb, infos);        delete [] infos;        // Change track here        if(old==nw && (nw!=AudioAvi)) return;        switch( nw)        {                case AudioMP3:                        GUI_FileSelRead ("Select MP3 to load ", (SELFILE_CB *)A_loadMP3);                        break;                case AudioAC3:                        GUI_FileSelRead ("Select AC3 to load ", (SELFILE_CB *)A_loadAC3);                        break;                case AudioWav:                        GUI_FileSelRead ("Select WAV to load ",(SELFILE_CB *) A_loadWave);                        break;                case AudioNone:                          changeAudioStream((AVDMGenericAudioStream *) NULL, AudioNone,NULL);                        break;                case AudioAvi:                        //printf("New :%d old:%d\n",newtrack,oldtrack);                        if(oldtrack!=newtrack)                        {                                video_body->changeAudioStream(0,newtrack);                                //                                delete aviaudiostream;                                aviaudiostream=NULL;                                video_body->getAudioStream(&aviaudiostream);                                changeAudioStream (aviaudiostream, AudioAvi,NULL);                        }                        break;                default:                        ADM_assert(0);        }}