summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2011-06-22 19:13:56 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2011-06-22 19:13:56 +0000
commitccfe1230f704d5fb3d49aa98153e7a96f3fab4a0 (patch)
tree893b577d4a75cf9bb9d6ab2aa439f4bacbf4bb82
parent742a3a92b393f10b8d43bb791627369923c72f2a (diff)
MCFG_SOUND_ROUTE now point relative to device (no whatsnew)
-rw-r--r--src/emu/disound.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/disound.c b/src/emu/disound.c
index 1b7a7da4797..dc95309f0b1 100644
--- a/src/emu/disound.c
+++ b/src/emu/disound.c
@@ -79,7 +79,9 @@ void device_sound_interface::static_add_route(device_t &device, UINT32 output, c
throw emu_fatalerror("MCFG_SOUND_ROUTE called on device '%s' with no sound interface", device.tag());
// append a new route to the list
- sound->m_route_list.append(*global_alloc(sound_route(output, input, gain, target)));
+ astring devtag;
+ device.siblingtag(devtag, target);
+ sound->m_route_list.append(*global_alloc(sound_route(output, input, gain, core_strdup(devtag.cstr()))));
}