From 103ea6a59495a9dfc9040ddcbcab7619876b7db6 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Sat, 21 Jun 2025 14:27:46 +0200 Subject: sound: correct dreadful typo that killed stereo --- src/emu/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp index bd6e4e15364..b65285fc67d 100644 --- a/src/emu/sound.cpp +++ b/src/emu/sound.cpp @@ -2001,7 +2001,7 @@ std::vector sound_manager::find_channel_mapping(const osd::channel_position double best_dist = -1; for(u32 port = 0; port != node->m_port_positions.size(); port++) if(!node->m_port_positions[port].is_onreq() && !node->m_port_positions[port].is_lfe()) { - double dx = pos.m_x - node->m_port_positions[port].m_z; + double dx = pos.m_x - node->m_port_positions[port].m_x; double dy = pos.m_y - node->m_port_positions[port].m_y; double dz = pos.m_z - node->m_port_positions[port].m_z; double dist = dx*dx + dy*dy + dz*dz; -- cgit v1.2.3