Format changed for sockets
authorFrancoisGrondin <francois.grondin2@usherbrooke.ca>
Wed, 16 Aug 2017 16:10:40 +0000 (12:10 -0400)
committerFrancoisGrondin <francois.grondin2@usherbrooke.ca>
Wed, 16 Aug 2017 16:10:40 +0000 (12:10 -0400)
demo/parameters.c

index f30673226f9ac0ac19a6fc0f933f9d38f56ad410..a32aea2d0af520b844d96256e58746911ccd5823 100644 (file)
             else if (strcmp(tmpStr1, "bin16") == 0) { cfg->format = format_construct_bin(16); }
             else if (strcmp(tmpStr1, "bin24") == 0) { cfg->format = format_construct_bin(24); }
             else if (strcmp(tmpStr1, "bin32") == 0) { cfg->format = format_construct_bin(32); }
-            else { printf("Invalid format\n"); exit(EXIT_FAILURE); }
+            else { printf("Sink hops raw: Invalid format\n"); exit(EXIT_FAILURE); }
 
             free((void *) tmpStr1);
 
             else if (strcmp(tmpStr1, "bin16") == 0) { cfg->format = format_construct_bin(16); }
             else if (strcmp(tmpStr1, "bin24") == 0) { cfg->format = format_construct_bin(24); }
             else if (strcmp(tmpStr1, "bin32") == 0) { cfg->format = format_construct_bin(32); }
-            else { printf("Invalid format\n"); exit(EXIT_FAILURE); }
+            else { printf("Sink hops raw: Invalid format\n"); exit(EXIT_FAILURE); }
 
             free((void *) tmpStr1);       
 
             else if (strcmp(tmpStr1, "bin16") == 0) { cfg->format = format_construct_bin(16); }
             else if (strcmp(tmpStr1, "bin24") == 0) { cfg->format = format_construct_bin(24); }
             else if (strcmp(tmpStr1, "bin32") == 0) { cfg->format = format_construct_bin(32); }
-            else { printf("Invalid format\n"); exit(EXIT_FAILURE); }
+            else { printf("Sink hops mapping: Invalid format\n"); exit(EXIT_FAILURE); }
 
             free((void *) tmpStr1);       
 
             else if (strcmp(tmpStr1, "bin16") == 0) { cfg->format = format_construct_bin(16); }
             else if (strcmp(tmpStr1, "bin24") == 0) { cfg->format = format_construct_bin(24); }
             else if (strcmp(tmpStr1, "bin32") == 0) { cfg->format = format_construct_bin(32); }
-            else { printf("Invalid format\n"); exit(EXIT_FAILURE); }
+            else { printf("Sink hops resample: Invalid format\n"); exit(EXIT_FAILURE); }
 
             free((void *) tmpStr1);       
 
             free((void *) tmpLabel);
 
             if (strcmp(tmpStr1, "float") == 0) { cfg->format = format_construct_float(); }
-            else { printf("Invalid format\n"); exit(EXIT_FAILURE); }
+            else { printf("Sink spectra stft: Invalid format\n"); exit(EXIT_FAILURE); }
 
             free((void *) tmpStr1);       
 
             tmpStr1 = parameters_lookup_string(fileIOs, tmpLabel);
             free((void *) tmpLabel);
 
-            if (strcmp(tmpStr1, "float") == 0) { cfg->format = format_construct_float(); }
-            else { printf("Invalid format\n"); exit(EXIT_FAILURE); }
+            if (strcmp(tmpStr1, "json") == 0) { cfg->format = format_construct_json(); }
+            else { printf("Sink pots: Invalid format\n"); exit(EXIT_FAILURE); }
 
             free((void *) tmpStr1);       
 
             tmpStr1 = parameters_lookup_string(fileIOs, tmpLabel);
             free((void *) tmpLabel);
 
-            if (strcmp(tmpStr1, "float") == 0) { cfg->format = format_construct_float(); }
-            else { printf("Invalid format\n"); exit(EXIT_FAILURE); }
+            if (strcmp(tmpStr1, "json") == 0) { cfg->format = format_construct_json(); }
+            else { printf("Sink tracks: Invalid format\n"); exit(EXIT_FAILURE); }
 
             free((void *) tmpStr1);       
 
             free((void *) tmpLabel);
 
             if (strcmp(tmpStr1, "float") == 0) { cfg->format = format_construct_float(); }
-            else { printf("Invalid format\n"); exit(EXIT_FAILURE); }
+            else { printf("Sink spectra separation: Invalid format\n"); exit(EXIT_FAILURE); }
 
             free((void *) tmpStr1);       
 
             free((void *) tmpLabel);
 
             if (strcmp(tmpStr1, "float") == 0) { cfg->format = format_construct_float(); }
-            else { printf("Invalid format\n"); exit(EXIT_FAILURE); }
+            else { printf("Sink spectra postfilter: Invalid format\n"); exit(EXIT_FAILURE); }
 
             free((void *) tmpStr1);