summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-04-04 08:14:57 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-04-04 08:14:57 +0000
commit44b66958fc2c263ed5c40d7d99a40a09b8843199 (patch)
treeab039b20f4111b43d067334648ec16bcdb5d2e38
parent8ec22b181cd2acc64ab70144bec51de442a5a626 (diff)
added a missing warning to sample loading code (nw)
-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;