diff IM_AF Encoder/IM_AM Encoder/main.c @ 8:c51c0b844461 tip

Ok
author Eugenio Oñate Hospital <eo301@eecs.qmul.ac.uk>
date Tue, 28 Aug 2012 12:20:04 +0100
parents 1636a6250528
children
line wrap: on
line diff
--- a/IM_AF Encoder/IM_AM Encoder/main.c	Tue Aug 28 11:12:43 2012 +0100
+++ b/IM_AF Encoder/IM_AM Encoder/main.c	Tue Aug 28 12:20:04 2012 +0100
@@ -5,10 +5,13 @@
 //  Created by eugenio oƱate hospital on 14/06/12.
 //  Copyright (c) 2012 QM. All rights reserved.
 //
-
+//File input/output 
 #include <stdio.h>
+//Standard library: numeric conversion, memory allocation...
 #include <stdlib.h>
+//Operations with strings
 #include <string.h>
+//Get the creation time: clock
 #include <time.h>
 #include "IM_AF Encoder.h"
 
@@ -70,14 +73,14 @@
     char nametrack[20];
     //Specify the path directory where there are the songs.
     //If change folder, change the path here (3 times) and in readTrack function!!!
-    char pathdir[60] ="/Users/eugin/Desktop/IM_AF Encoder/Rock/";
+    char pathdir[60] ="/Users/eugin/Desktop/IM_AF Encoder/Electro/";
     int numtr, ex = 0;
     for (numtr=0; numtr<totaltracks; numtr++) {
         
         printf("Name of the track number: %d\n", numtr+1);
         fflush(stdin);
         scanf("%s", nametrack);
-        strcpy(pathdir, "/Users/eugin/Desktop/IM_AF Encoder/Rock/");
+        strcpy(pathdir, "/Users/eugin/Desktop/IM_AF Encoder/Electro/");
         strcat(pathdir, nametrack);
         ex = 0;
         //Check if the track exist and then open it.
@@ -87,7 +90,7 @@
                 printf("Name does not exist. Try again:\n");
                 fflush(stdin);
                 scanf("%s", nametrack);
-                strcpy(pathdir, "/Users/eugin/Desktop/IM_AF Encoder/Rock/");
+                strcpy(pathdir, "/Users/eugin/Desktop/IM_AF Encoder/Electro/");
                 strcat(pathdir, nametrack);
             }else{
                 ex = 1;
@@ -453,7 +456,7 @@
     int  dat = 0, dat1 = 0, dat2 = 0, dat3 = 0, num_frame = 0, end =0, pos = 0;
     u32 size[9000];
     //Change path directory here
-    char pathdir[60] = "/Users/eugin/Desktop/IM_AF Encoder/Rock/";
+    char pathdir[60] = "/Users/eugin/Desktop/IM_AF Encoder/Electro/";
     strcat(pathdir, name);
     //Open the audio file with the name introduced by the user
     song = fopen (pathdir,"rb");