Programa para el testeo de reproduccion de audio.
- Autor
- Fernando Pujaico Rivera
- Fecha
- 23-01-2012
#include <config.h>
#include <stdlib.h>
#include <pds/pdsra.h>
#include <pds/pdsda.h>
int main (int argc, char *argv[])
{
int i;
int id;
FILE *fd=NULL;
PdsVector *X=NULL;
PdsRaNatural N=1024;
X=pds_vector_new(N);
if(A==NULL)
{
printf("Error creando PdsPlay\n");
return EXIT_FAILURE;
}
printf("freq:%d\n",freq);
printf("bits:%d\n",bits);
{
printf("Error colocando buffer\n");
return EXIT_FAILURE;
}
for (i = 0; i < 1200; ++i)
{
fd=fopen("data.dat","r");
if(fd==NULL) {printf("Error open\n");return EXIT_FAILURE;}
pds_vector_fscanf(X,fd);
if(
id==
FALSE) {printf(
"Error Play\n");
return EXIT_FAILURE;}
pds_vector_fscanf(X,fd);
if(
id==
FALSE) {printf(
"Error Play\n");
return EXIT_FAILURE;}
fclose(fd);
}
exit (0);
}