Lines Matching refs:printf
95 printf("\n"); in print_banner()
96 printf("DSPADPCM v2.3 - DSP-ADPCM encoder\n"); in print_banner()
97 printf("Copyright 2001 Nintendo. All rights reserved.\n\n"); in print_banner()
106 printf("\n"); in print_usage()
107 printf("Usage:\n\n"); in print_usage()
108 printf("DSPADPCM -<mode> <inputfile> [<outputfile>] [-opt<argument>]\n\n"); in print_usage()
109 printf("Where:\n"); in print_usage()
110 printf(" <mode>.............E for Encode, D for Decode (required)\n"); in print_usage()
111 printf(" <inputfile>........Input file (required)\n"); in print_usage()
112 printf(" [<outputfile>].....Output file (optional)\n\n"); in print_usage()
114 printf("Options are:\n"); in print_usage()
115 printf(" -c<coeffile>.......Text dump of coefficients and other data\n"); in print_usage()
116 printf(" -l<start-end>......Sound effect is looped; 'start' is first sample\n"); in print_usage()
117 printf(" in loop, counting from zero. 'end' is the last\n"); in print_usage()
118 printf(" sample in the loop, also counting from zero.\n"); in print_usage()
119 printf(" -a<end addr>.......For non-looped sound effects; last sample in\n"); in print_usage()
120 printf(" the sound effect, counting from zero.\n"); in print_usage()
121 printf(" -h.................This help text.\n"); in print_usage()
122 printf(" -v.................Verbose mode.\n"); in print_usage()
123 printf(" -f.................Decode to AIFF.\n"); in print_usage()
124 printf(" -w.................Decode to WAV (default).\n"); in print_usage()
125 printf("\n\n"); in print_usage()
126 printf("This tool generates DSPADPCM data from MONO, 16-bit PCM WAV or AIFF\n"); in print_usage()
127 …printf("files. The DSPADPCM output file (*.dsp) has a %d byte data header \n", sizeof(DSPADPCMHEAD… in print_usage()
128 printf("which contains the ADPCM coefficients, loop context (if any), \n"); in print_usage()
129 printf("and other sample info. The format of this header is described \n"); in print_usage()
130 printf("in the DSPADPCM documentation.\n\n"); in print_usage()
171 printf("[%d]: 0x%04X\n", i, *p++ & 0xffff); in coefficients()
228 printf("\nERROR: Missing parameter\n"); in parse_args()
287 printf("\nERROR: Decode flag already asserted!\n"); in parse_args()
303 printf("\nERROR: Encode flag already asserted!\n"); in parse_args()
319 printf("\nERROR: Unable to parse loop points '%s'\n", &argv[i][2]); in parse_args()
338 printf("\nERROR: Invalid sample end address.\n"); in parse_args()
367 printf("\nERROR: Unknown switch '%c'\n", argv[i][1]); in parse_args()
392 printf("\nERROR: Extraneous argument '%s'\n", argv[i]); in parse_args()
405 printf("\nERROR: No input file specified!\n"); in parse_args()
434 printf("\nERROR: MODE directive not specified!\n"); in parse_args()
454 printf("\nWARNING: loopStart is greater than loopEnd\n"); in parse_args()
459 printf("\nWARNING: loop-start is beyond valid ARAM range! (0x%08X)\n", loopStart); in parse_args()
464 printf("\nWARNING: loop=end is beyond valid ARAM range! (0x%08X)\n", loopEnd); in parse_args()
469 printf("\nWARNING: '-a' argument ignored for looped sample.\n"); in parse_args()
475 … printf("\nWARNING: sample-end address is beyond valid ARAM range! (0x%08X)\n", sampleEndAddr); in parse_args()
480 printf("\tinput file : '%s'\n", input_path); in parse_args()
481 printf("\toutput file: '%s'\n", output_path); in parse_args()
482 printf("\tcoef file : '%s'\n", coef_path); in parse_args()
483 printf("\n"); in parse_args()
573 if (verbose_flag) printf(" Done.\nGetting sound samples..."); in encode_soundfile()
583 printf("Cannot allocate buffers for encode!\n"); in encode_soundfile()
646 if (verbose_flag) printf(" Done.\nEncoding samples..."); in encode_soundfile()
685 if (verbose_flag) printf(" Done.\nWriting DSPADPCM file..."); in encode_soundfile()
693 if (verbose_flag) printf(" Done.\nWriting text dump file ..."); in encode_soundfile()
697 if (verbose_flag) printf(" Done.\n"); in encode_soundfile()
708 if (verbose_flag) printf("Getting sound header..."); in encode_input_file()
716 printf("Sound file buffer not 16bit samples!\n"); in encode_input_file()
722 printf("Soundfile buffer not mono!\n"); in encode_input_file()
732 printf("Sound file format not supported!\n"); in encode_input_file()
738 printf("fopen error for sound file!\n"); in encode_input_file()
755 if (verbose_flag) printf("Getting DSPADPCM header..."); in decode_input_file()
766 if (verbose_flag) printf(" Done.\nGetting ADPCM samples..."); in decode_input_file()
798 if (verbose_flag) printf(" Done.\nDecoding samples..."); in decode_input_file()
825 if (verbose_flag) printf(" Done.\nWriting sound file..."); in decode_input_file()
844 printf("\nERROR: Cannot allocate output buffer!\n"); in decode_input_file()
851 printf("\nERROR: Cannot allocate input buffer!\n"); in decode_input_file()
863 if (verbose_flag) printf(" Done.\nWriting text dump file..."); in decode_input_file()
866 if (verbose_flag) printf(" Done.\n"); in decode_input_file()
951 printf("\nERROR: Failed to load dll\n"); in main()
958 printf("\nERROR: Cannot open %s for reading!\n", input_path); in main()
965 printf("\nERROR: Cannot open %s for writing!\n", output_path); in main()
974 printf("\nERROR: Cannot open %s for writing!\n", coef_path); in main()