diff options
author | 2010-09-02 08:14:41 +0000 | |
---|---|---|
committer | 2010-09-02 08:14:41 +0000 | |
commit | a9befd7970976c6d3fefba1faac1b75fc6415b35 (patch) | |
tree | 2a73395bdb122e14e9a4c35ea820f17e4fff61f4 /src/emu/sound/multipcm.c | |
parent | 066e54b69fd68b249402febcf17b4b0bc7c4f79a (diff) |
Remove artificial SOUND_ prefix from sound device names.
[Atari Ace]
---------- Forwarded message ----------
From: Atari Ace <atari_ace@frontier.com>
Date: Tue, Aug 31, 2010 at 5:50 AM
Subject: [patch] Despecialize legacy sound devices
To: submit@mamedev.org
Cc: atariace@hotmail.com
Hi mamedev,
While poking around in the MAME source code, I came across the odd
type snes_sound_sound_device, which led me to the fact that legacy
sound devices are named a bit differently than other legacy devices,
probably a kludge intended to be changed later but forgotten. Anyhow,
this patch fixes it. The first patch goes part way, changing all but
the tag (which fixes the weird type issue). It also changes type
names in the scsp and msm5232 cores to avoid a name collision if/when
the second patch is applied. The second patch then touches a lot of
files, mostly removing the SOUND_ prefix from type asserts, but it
also needed to change the tags for the LASERDISC, S2636 and SPEAKER
sound cores to avoid collisions with other devices with the same name.
~aa
Diffstat (limited to 'src/emu/sound/multipcm.c')
-rw-r--r-- | src/emu/sound/multipcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/sound/multipcm.c b/src/emu/sound/multipcm.c index 4dc47863e8a..24bd5998d4f 100644 --- a/src/emu/sound/multipcm.c +++ b/src/emu/sound/multipcm.c @@ -129,7 +129,7 @@ static const int val2chan[] = INLINE MultiPCM *get_safe_token(running_device *device) { assert(device != NULL); - assert(device->type() == SOUND_MULTIPCM); + assert(device->type() == MULTIPCM); return (MultiPCM *)downcast<legacy_device_base *>(device)->token(); } |