Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
07100 Sound Minor Always Sep 17, 2018, 16:28 13 days ago
Tester anemostat54539 View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Unable to reproduce OS
Status [?] Closed Driver
Version 0.201 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 07100: A sound like howling appears in ZSG 2 + DSP built with VS2017
Description I built MAME's zn.cpp on VS2017 and confirmed the sound of raystormj. Then, I noticed that sounds like howling were mixed in all the sound tests.
Steps To Reproduce 1. make SUBTARGET=zn SOURCES=src\mame\drivers\zn.cpp
(Make sure that MSBUILD can be executed before compiling)
2. start zn64.exe -window raystormj
3. enter test mode, and sound test
4. play any song
Additional Information When I looked it up, I understood that the problem occurred with the following code of DSP.
src/devices/cpu/tms57002/tmsinstr.lst Line:220

lmhc 1 33 1 n
lmhc %c
macc_write = macc = ((int64_t)(int32_t)%c) << 16; <- this

lmhd 1 31 1 n
lmhd %d
macc_write = macc = (int64_t)((int32_t)(%d)) << 16; <- this

It seems that there is a problem with casting to int64_t.
Github Commit
Flags
Regression Version
Affected Sets / Systems
Attached Files
7z file icon zn64.7z (3,807,949 bytes) Sep 17, 2018, 22:31 Uploaded by anemostat54539
Relationships
There are no relationship linked to this issue.
Notes
6
User avatar
No.15474
ctr
Tester
Sep 17, 2018, 19:30
If the problem is in the DSP core, can you confirm that it also happens (or a similar DSP-related issue) in konamigx.cpp games?

If it does not occur, can you check what happens when the DSP is bypassed (ie, sound routes directly from ZSG-2 device in mame/audio/taito_zm.cpp)
User avatar
No.15477
anemostat54539
Tester
Sep 17, 2018, 22:11
edited on: Sep 17, 2018, 22:31
In konamigx built with VS2017, both x86 and x64 were not reproduced. (Using gokujyo parodius for testing)

I can't test direct sound route changing. attach zn64 with VS2017 x64 build exe file.
User avatar
No.22961
JimCarlTay
Tester
14 days ago
edited on: 14 days ago
The issue does not occur on the latest nightly build I am using in an attempt to reproduce this (f197c5c). I am using the parent set for RayStorm (raystorm). Interestingly, upon first boot for that game, you are taken to the service menu.
User avatar
No.22966
hap
Developer
14 days ago
edited on: 13 days ago
Irrelevant that it works on the nightly build you tried, unless it is compiled with VS2017?
Also, if it works fine on current Visual Studio, IMO bug can be closed. (likely a compiler bug and not MAME's fault)
User avatar
No.22967
JimCarlTay
Tester
14 days ago
Unfortunately not. My build was GCC, sourced from the GitHub repo's actions page.
User avatar
No.22969
Robbbert
Moderator
13 days ago
I don't think VS2017 is supported any more, and it doesn't make sense here to investigate a bug with one compiler.

Closed as per hap's suggestion.