--- /home/tim/linogg.c Thu Mar 27 19:08:40 2003 +++ linogg.c Thu Mar 27 19:43:11 2003 @@ -20,7 +20,7 @@ #define BUF_SIZE 4096 int audioDev; -unsigned char buffer[BUF_SIZE]; +char buffer[BUF_SIZE]; int audioOpen(); int audioSet(int, long); @@ -67,14 +67,8 @@ } vbcomm = ov_comment(&vf,-1); totComments = vbcomm->comments; - i = 0; - while (totComments != -1) - { - printf(vbcomm->user_comments[i]); - printf("\n"); - i++; - totComments--; - } + for(i=0;iuser_comments[i]); printf("Begin playing: "); printf(argv[1]); printf("\nPress ctrl-c to stop player!\n"); @@ -140,13 +134,13 @@ return -1; } - printf("Requested sample rate %d\n",rate); + printf("Requested sample rate %li\n",rate); if (ioctl(audioDev,SNDCTL_DSP_SPEED,&rate) == -1) { perror("SNDCTL_DSP_SPEED"); return -1; } - printf("Returned Sample Rate: %d\n", rate); + printf("Returned Sample Rate: %li\n", rate); if (rate < (reqRate - 1000) || rate > (reqRate + 1000)) { printf("Sample rate wasn't supported!\n");