trunk/src/tools/chdman.c
| r243371 | r243372 | |
| 2588 | 2588 | // read the hunk into the buffers |
| 2589 | 2589 | chd_error err = input_chd.read_hunk(framenum, NULL); |
| 2590 | 2590 | if (err != CHDERR_NONE) |
| 2591 | | report_error(1, "Error reading hunk %" I64FMT "d from CHD file (%s): %s\n", framenum, params.find(OPTION_INPUT)->cstr(), chd_file::error_string(err)); |
| 2591 | { |
| 2592 | UINT64 filepos = core_ftell(input_chd); |
| 2593 | report_error(1, "Error reading hunk %" I64FMT "d at offset %" I64FMT "d from CHD file (%s): %s\n", framenum, filepos, params.find(OPTION_INPUT)->cstr(), chd_file::error_string(err)); |
| 2594 | } |
| 2592 | 2595 | |
| 2593 | 2596 | // write audio |
| 2594 | 2597 | for (int chnum = 0; chnum < channels; chnum++) |