trunk/src/emu/sound/samples.c
| r29246 | r29247 | |
| 426 | 426 | |
| 427 | 427 | bool samples_device::read_wav_sample(emu_file &file, sample_t &sample) |
| 428 | 428 | { |
| 429 | | // we already read the opening 'WAVE' header |
| 429 | // we already read the opening 'RIFF' tag |
| 430 | 430 | UINT32 offset = 4; |
| 431 | 431 | |
| 432 | 432 | // get the total size |
| r29246 | r29247 | |
| 448 | 448 | return false; |
| 449 | 449 | } |
| 450 | 450 | if (memcmp(&buf[0], "WAVE", 4) != 0) |
| 451 | { |
| 452 | mame_printf_warning("Could not find WAVE header (%s)\n", file.filename()); |
| 451 | 453 | return false; |
| 454 | } |
| 452 | 455 | |
| 453 | 456 | // seek until we find a format tag |
| 454 | 457 | UINT32 length; |