#include <stdio.h>      /* standard I/O                */
#include <string.h>     /* for strcpy - 3 occurrences  */
#include <stdlib.h>     /* for exit   - 1 occurrence   */

#ifdef enable_threading
#include <pthread.h>
#endif

double lsmedia,media1;

int Media1()
{
        gettimeofday(&starttime, NULL);
#ifdef enable_threading
#pragma omp parallel for
#endif
        for(i=0; i<10; i++) {
        system("mediadir/mp32wav.run");
	system("mediadir/wav2ogg.run");
	system("mediadir/wav2mp3.run");
        }
        gettimeofday(&endtime, NULL);
        te0=((double)(endtime.tv_sec*1000000-starttime.tv_sec*1000000+endtime.tv_usec-starttime.tv_usec))/1000000;
        media1 = 11 * 3 / te0;
        printf("\n\tTest #1:\tConversion mp3->wav->ogg->mp3 11 times: %lf/s\n", media1);
return media1;
}

