summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/samples.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/samples.c')
-rw-r--r--src/emu/sound/samples.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emu/sound/samples.c b/src/emu/sound/samples.c
index f0da19979ca..f84f64511e5 100644
--- a/src/emu/sound/samples.c
+++ b/src/emu/sound/samples.c
@@ -426,7 +426,7 @@ bool samples_device::read_sample(emu_file &file, sample_t &sample)
bool samples_device::read_wav_sample(emu_file &file, sample_t &sample)
{
- // we already read the opening 'WAVE' header
+ // we already read the opening 'RIFF' tag
UINT32 offset = 4;
// get the total size
@@ -448,7 +448,10 @@ bool samples_device::read_wav_sample(emu_file &file, sample_t &sample)
return false;
}
if (memcmp(&buf[0], "WAVE", 4) != 0)
+ {
+ mame_printf_warning("Could not find WAVE header (%s)\n", file.filename());
return false;
+ }
// seek until we find a format tag
UINT32 length;