Previous 199869 Revisions Next

r29247 Friday 4th April, 2014 at 08:14:57 UTC by Oliver Stöneberg
added a missing warning to sample loading code (nw)
[src/emu/sound]samples.c

trunk/src/emu/sound/samples.c
r29246r29247
426426
427427bool samples_device::read_wav_sample(emu_file &file, sample_t &sample)
428428{
429   // we already read the opening 'WAVE' header
429   // we already read the opening 'RIFF' tag
430430   UINT32 offset = 4;
431431
432432   // get the total size
r29246r29247
448448      return false;
449449   }
450450   if (memcmp(&buf[0], "WAVE", 4) != 0)
451   {
452      mame_printf_warning("Could not find WAVE header (%s)\n", file.filename());
451453      return false;
454   }
452455
453456   // seek until we find a format tag
454457   UINT32 length;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team