Mercurial > hg > enc-imaf
changeset 8:c51c0b844461 tip
Ok
author | Eugenio Oñate Hospital <eo301@eecs.qmul.ac.uk> |
---|---|
date | Tue, 28 Aug 2012 12:20:04 +0100 |
parents | 53c7dfb137ac |
children | |
files | .DS_Store IM_AF Encoder/.DS_Store IM_AF Encoder/IM_AM Encoder.xcodeproj/project.xcworkspace/xcuserdata/eugin.xcuserdatad/UserInterfaceState.xcuserstate IM_AF Encoder/IM_AM Encoder/Example_Acoustic.ima IM_AF Encoder/IM_AM Encoder/IM_AF Encoder.h IM_AF Encoder/IM_AM Encoder/main.c IM_AF Report/Development of an IM AF Encoder.pdf |
diffstat | 7 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
Binary file IM_AF Encoder/IM_AM Encoder.xcodeproj/project.xcworkspace/xcuserdata/eugin.xcuserdatad/UserInterfaceState.xcuserstate has changed
--- a/IM_AF Encoder/IM_AM Encoder/IM_AF Encoder.h Tue Aug 28 11:12:43 2012 +0100 +++ b/IM_AF Encoder/IM_AM Encoder/IM_AF Encoder.h Tue Aug 28 12:20:04 2012 +0100 @@ -9,8 +9,6 @@ #ifndef IM_AM_Encoder_IM_AF_Encoder_h #define IM_AM_Encoder_IM_AF_Encoder_h -/* for va_list typedef */ -#include <stdarg.h> /* for FILE typedef, */ #include <stdio.h>
--- 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");