summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/gaelco.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-09-02 08:14:41 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-09-02 08:14:41 +0000
commita9befd7970976c6d3fefba1faac1b75fc6415b35 (patch)
tree2a73395bdb122e14e9a4c35ea820f17e4fff61f4 /src/emu/sound/gaelco.c
parent066e54b69fd68b249402febcf17b4b0bc7c4f79a (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/gaelco.c')
-rw-r--r--src/emu/sound/gaelco.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/sound/gaelco.c b/src/emu/sound/gaelco.c
index f814bfc8fcb..10f2d8db478 100644
--- a/src/emu/sound/gaelco.c
+++ b/src/emu/sound/gaelco.c
@@ -78,7 +78,7 @@ static wav_file * wavraw; /* raw waveform */
INLINE gaelco_sound_state *get_safe_token(running_device *device)
{
assert(device != NULL);
- assert(device->type() == SOUND_GAELCO_GAE1 || device->type() == SOUND_GAELCO_CG1V);
+ assert(device->type() == GAELCO_GAE1 || device->type() == GAELCO_CG1V);
return (gaelco_sound_state *)downcast<legacy_device_base *>(device)->token();
}