Lines Matching refs:printf
109 printf("\n"); in print_banner()
110 printf("DSPADPCM v2.4 - DSP-ADPCM encoder\n"); in print_banner()
111 printf("Copyright 2001-2009 Nintendo. All rights reserved.\n\n"); in print_banner()
119 printf("\n"); in print_usage()
120 printf("Usage:\n\n"); in print_usage()
121 printf("DSPADPCM -<mode> <inputfile> [<outputfile>] [-opt<argument>]\n\n"); in print_usage()
122 printf("Where:\n"); in print_usage()
123 printf(" <mode>.............E for Encode, D for Decode (required)\n"); in print_usage()
124 printf(" <inputfile>........Input file (required)\n"); in print_usage()
125 printf(" [<outputfile>].....Output file (optional)\n\n"); in print_usage()
127 printf("Options are:\n"); in print_usage()
128 printf(" -c<coeffile>.......Text dump of coefficients and other data\n"); in print_usage()
129 printf(" -l<start-end>......Sound effect is looped; 'start' is first sample\n"); in print_usage()
130 printf(" in loop, counting from zero. 'end' is the last\n"); in print_usage()
131 printf(" sample in the loop, also counting from zero.\n"); in print_usage()
132 printf(" -a<end addr>.......For non-looped sound effects; last sample in\n"); in print_usage()
133 printf(" the sound effect, counting from zero.\n"); in print_usage()
134 printf(" -h.................This help text.\n"); in print_usage()
135 printf(" -v.................Verbose mode.\n"); in print_usage()
136 printf(" -f.................Decode to AIFF.\n"); in print_usage()
137 printf(" -w.................Decode to WAV (default).\n"); in print_usage()
138 printf("\n\n"); in print_usage()
139 printf("This tool generates DSPADPCM data from MONO, 16-bit PCM WAV or AIFF\n"); in print_usage()
140 …printf("files. The DSPADPCM output file (*.dsp) has a %d byte data header \n", sizeof(DSPADPCMHEAD… in print_usage()
141 printf("which contains the ADPCM coefficients, loop context (if any), \n"); in print_usage()
142 printf("and other sample info. The format of this header is described \n"); in print_usage()
143 printf("in the DSPADPCM documentation.\n\n"); in print_usage()
182 printf("[%d]: 0x%04X\n", i, *p++ & 0xffff); in coefficients()
238 printf("\nERROR: Missing parameter\n"); in parse_args()
297 printf("\nERROR: Decode flag already asserted!\n"); in parse_args()
313 printf("\nERROR: Encode flag already asserted!\n"); in parse_args()
329 printf("\nERROR: Unable to parse loop points '%s'\n", &argv[i][2]); in parse_args()
350 printf("\nERROR: Invalid sample end address.\n"); in parse_args()
379 printf("\nERROR: Unknown switch '%c'\n", argv[i][1]); in parse_args()
403 printf("\nERROR: Extraneous argument '%s'\n", argv[i]); in parse_args()
417 printf("\nERROR: No input file specified!\n"); in parse_args()
446 printf("\nERROR: MODE directive not specified!\n"); in parse_args()
466 printf("\nWARNING: loopStart is greater than loopEnd\n"); in parse_args()
471 printf("\nWARNING: loop-start is beyond valid ARAM range! (0x%08X)\n", loopStart); in parse_args()
476 printf("\nWARNING: loop=end is beyond valid ARAM range! (0x%08X)\n", loopEnd); in parse_args()
481 printf("\nWARNING: '-a' argument ignored for looped sample.\n"); in parse_args()
487 … printf("\nWARNING: sample-end address is beyond valid ARAM range! (0x%08X)\n", sampleEndAddr); in parse_args()
492 printf("\tinput file : '%s'\n", input_path); in parse_args()
493 printf("\toutput file: '%s'\n", output_path); in parse_args()
494 printf("\tcoef file : '%s'\n", coef_path); in parse_args()
495 printf("\n"); in parse_args()
500 printf("\n****************************\n"); in parse_args()
502 printf("input_path : '%s'\n", input_path); in parse_args()
503 printf("output_path: '%s'\n", output_path); in parse_args()
504 printf("coef_path : '%s'\n", coef_path); in parse_args()
505 printf("decode_path: '%s'\n", decode_path); in parse_args()
507 printf("\n"); in parse_args()
509 printf("loopStart: %d\n", loopStart); in parse_args()
510 printf("loopEnd : %d\n", loopEnd); in parse_args()
512 printf("\n"); in parse_args()
514 printf("rval: %d\n", rval); in parse_args()
583 if (verbose_flag) printf(" Done.\nGetting sound samples..."); in encode_soundfile()
593 printf("Cannot allocate buffers for encode!\n"); in encode_soundfile()
656 if (verbose_flag) printf(" Done.\nEncoding samples..."); in encode_soundfile()
695 if (verbose_flag) printf(" Done.\nWriting DSPADPCM file..."); in encode_soundfile()
703 if (verbose_flag) printf(" Done.\nWriting text dump file ..."); in encode_soundfile()
707 if (verbose_flag) printf(" Done.\n"); in encode_soundfile()
718 if (verbose_flag) printf("Getting sound header..."); in encode_input_file()
726 printf("Sound file buffer not 16bit samples!\n"); in encode_input_file()
732 printf("Soundfile buffer not mono!\n"); in encode_input_file()
742 printf("Sound file format not supported!\n"); in encode_input_file()
748 printf("fopen error for sound file!\n"); in encode_input_file()
765 if (verbose_flag) printf("Getting DSPADPCM header..."); in decode_input_file()
776 if (verbose_flag) printf(" Done.\nGetting ADPCM samples..."); in decode_input_file()
808 if (verbose_flag) printf(" Done.\nDecoding samples..."); in decode_input_file()
835 if (verbose_flag) printf(" Done.\nWriting sound file..."); in decode_input_file()
854 printf("\nERROR: Cannot allocate output buffer!\n"); in decode_input_file()
861 printf("\nERROR: Cannot allocate input buffer!\n"); in decode_input_file()
873 if (verbose_flag) printf(" Done.\nWriting text dump file..."); in decode_input_file()
876 if (verbose_flag) printf(" Done.\n"); in decode_input_file()
961 printf("\nERROR: Failed to load dll\n"); in main()
970 printf("\nERROR: Cannot open %s for reading!\n", input_path); in main()
980 printf("\nERROR: Cannot open %s for writing!\n", output_path); in main()
990 printf("\nERROR: Cannot open %s for writing!\n", coef_path); in main()