-
Notifications
You must be signed in to change notification settings - Fork 42
X86: Noise games #155
Comments
Well, the correct setting is indeed 48k, you'll have issues with audio on some games if you are not using this (see http://neosource.1emulation.com/forums/index.php?topic=2487.msg22799#msg22799 and following posts). I'm aware it causes issues in some linux distro, but i don't know why. It seems very unlikely the fba core would be the culprit about this issue, since fba standalone is mainly distributed as a x86_32 executable with 48k samplerate. It definitely seems like a buggy audio implementation on distro's side since it only affects some 32 bits distro. And yes i had some plan on making it a core option, but i totally forgot. I'll take a look this week-end. |
Something came to mind, could you try building with the "FASTCALL=1" parameter ? That's a setting specific to x86_32, i know fbalpha standalone is built with it, perhaps the fact it is disabled for cross-platform compatibility in lr-fbalpha is what is causing this issue. |
Hi @barbudreadmon
|
Could you try again with my last commit ? It seems the fastcall convention in gcc is different from msvc |
Tried, and I have the same build errors. |
Yeah, i didn't know those macros had duplicates, try again it should be ok now. |
Ok so now it is building well with FASTCALL enabled. |
Well, you should probably keep it anyway, this is supposed to have a good impact on speed with x86_32 (see https://en.wikipedia.org/wiki/X86_calling_conventions). Sorry, nothing else comes to mind at the moment. |
haha no problem, if you have any other idea, tell me I'll try. do you know if the standalone FBA have the same issue on linux 32bits ? |
Do you mean through wine ? I never tried it |
While working on #163 , i refactored a few things with audio, perhaps it would be worth checking if it didn't solve this one. |
Hello, sorry for delay. |
@barbudreadmon so, found time to test the new master branch, are the sound problem is still present :-/ |
So, while working on #163, i ended up noticing weird issues with the z80 sound core, so i'm wondering, is this issue affecting all games or only the games using this sound core ? Games from the cps3 driver (which is not using this sound core) are affected ? |
I don't know if you checked the last commits, there were a few changes to the audio system in lr-fbalpha, but something else came to mind, what's your value for CONFIG_SND_HDA_PREALLOC_SIZE in your linux kernel ? If it's the default 64, i highly recommend to change it to 2048. |
Hello and thank you for your feedback. Thank you. |
Also, i tried creating audio settings core options. Sadly, at the moment, you have to totally leave retroarch when you set the samplerate (it seems retroarch crash if i call "retro_audio_sample_batch_t" again, but i need to call it again since the samplerate define the size of the audio buffer and segment length). Perhaps @twinaphex @fr500 could tell me more about this. Edit : nevermind, it seems i also need to call BurnDrvExit/BurnDrvInit to change the samplerate in fba, so i don't think it will be possible to change samplerate without fully leaving the core anyway. |
@barbudreadmon So I tested the current master branch and good news the problem is partially solved.
Games that are OK now, are not with the core included in last recalbox's version. I have sound issues. Good job and thank you. |
Hmmm there were a lot of commits affecting sound in the past month, telling me which commit exactly solved the issue with after burner 2, 1945 III, street fighter 3 and alien storm would help a lot with debugging the remaining ones. |
ok I'll bisect and tell you which commit solved this sound issue |
@rockaddicted i replied to someone having this issue on recalbox's forum, any news from the bissect ? Also, did you try the kernel parameter i mentioned ? |
@barbudreadmon hello, sorry but I'm really irl busy for the moment... I didn't have time to bissect and find which commit solved the sound issue... About kernel parameter I tried with a neogeo game (a metal slug) and that didn't fix the problem. |
@barbudreadmon Hi, I'm opening this issue because on Recalbox X86 build I have this problem: libretro/RetroArch#4359
Indeed switching
AUDIO_SAMPLERATE
from48000
to32000
solve this issue. But I would like to know if you have an idea of the root cause of this problem system's side ? Why only 32bits version is impacted ?Did you plan to make the settings available as core option ?
Thank you.
The text was updated successfully, but these errors were encountered: