-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds additional sound options #94
Conversation
This will cause issue with game like tapper ect without updating the audio code. |
@grant2258 isn't the behavior unchanged if the setting stays at default? |
we had to deal with this on 2003-plus we which we ported to mame 2003 let me double check its an issue |
yes its still an issue. there are two things that can happen.
for the examples start tapper with 32000 listen it broken you need to restart after changing the sample rate. ps the default was bad at 32000 no idea who changed it to that. it was always coded for 30000 ive pasted some code below you need to look at. See what I done in mame2003_plus for the sound if you want to port it over here. 22050 is a sweetspot for everything 30000 will get you there as well. |
mame2000-libretro/src/libretro/sound.c Lines 12 to 38 in 75c85fa
Line 93 in 75c85fa
|
Yes, it was intended to require restart -- the option is only read in I can continue to look into it, though... |
wget https://patch-diff.githubusercontent.com/raw/libretro/mame2000-libretro/pull/86.diff This segfaults most like causing your restart issues you need to close the content as the sample rate isint re initialized on reload so you wouldnt notice the bug. ill look into sorting that out. |
The restart issue comes from mame2000-libretro/src/libretro/libretro.c Line 1058 in 75c85fa
This sets Then after loading a new game mame2000-libretro/src/libretro/libretro.c Lines 678 to 685 in 75c85fa
Anyway, other than loading new game without reinit core I don't see how changing sound option would change active behavior, because core option value set by But I haven't spent too much time with this code. So if there is a way to break it is OK to revert until a better way is found |
I know a bit about what going on in the mame end here. [INFO] [Config]: Saved new config to "/home/grant/.config/retroarch/retroarch.cfg". this is what happens with the patch above. It does close with no issues just shows you the message a few times. without the segfault patch you get this SUMMARY: AddressSanitizer: heap-buffer-overflow /build/gcc/src/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:740 in __interceptor_strrchr segfaults can be deceitful as to where the problem is. There is no need to revert just set the sample rate to 22050 of 30000 the patch above is needed causes segfaults all over the place. This segfault is unrelated to your code anyway. |
No description provided.