Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: syncaudio setting  (Read 1588 times)

0 Members and 1 Guest are viewing this topic.

oliver

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:June 08, 2022, 08:43:17 am
syncaudio setting
« on: June 01, 2022, 09:07:23 am »
Hello.

Lately, I have been experiencing sound wobble while running games like batsugun or sf3 third strike after updating groovymame to newer versions.
This morning, I checked which groovymame version started to show this and could identify this started happening on version 0.232, while 0.229 was running perfectly.
The wobble is not very noticeable, but can be annoying.

I stumbled accross this post http://forum.arcadecontrols.com/index.php/topic,166561.0.html by pure coincidence
And then looked at the changelog that explains there was a new syncaudio setting introduced in 0.232 with a comment about sound wobble issues from Calamity.

Turns out setting this to 0 in mame.ini fixes my sound wobble issue on releases after 0.229.
Since I am running groovymame on a free/old but still fast i5 2400 based HP elite 8200 that has no problem keeping up with emulation as shown by the task manager, it looks like the default setting kinda breaks me.

Is there a reason why I should keep this setting enabled?

Thanks.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: syncaudio setting
« Reply #1 on: June 03, 2022, 04:39:13 am »
I recently updated groovymame to latest version and the best option for me was completly re-generate configs (ini, cfg etc.)

Maybe you could try put latest groovymame in different directory, re-generate configs and change only in ini roms directory for a start.

oliver

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:June 08, 2022, 08:43:17 am
Re: syncaudio setting
« Reply #2 on: June 03, 2022, 11:53:53 am »
Whenever I update, I use the entire folder coming with the new release, including the ini. I only update the rom path and the ctrlr definition in the ini, the reset i leave it as is untouched.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: syncaudio setting
« Reply #3 on: June 03, 2022, 12:56:25 pm »
What I did was put new version in separate and empty directory and run groovymame -cc there. After this I started changing ini file.

oliver

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:June 08, 2022, 08:43:17 am
Re: syncaudio setting
« Reply #4 on: June 03, 2022, 01:26:18 pm »
I am not talking about an ini file problem. My mame.ini is correct for the version i run.
I am saying that after groovymame 0.229, the syncaudio option was introduced and is set to 1 in mame.ini by default (and yes I have it in the .ini), but I need to set it to 0 otherwise it leads to a few sound/music wobbles while playing.
Prior to version 0.229, the setting was not available, syncaudio was still enabled, but is not causing sound issues.
« Last Edit: June 03, 2022, 02:33:36 pm by oliver »

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: syncaudio setting
« Reply #5 on: June 04, 2022, 08:59:20 am »
Look at my inis fro groovymame 243.

oliver

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:June 08, 2022, 08:43:17 am
Re: syncaudio setting
« Reply #6 on: June 04, 2022, 09:52:15 pm »
You have audiosync on. Whats your CPU? Maybe you have not noticed but on my i5 2400 the issue is definitively there.
Run sf3 thrid strike, and you can hear the music pitch lowering for a short instant at the start of the ORO stage. It comes back from time to time in the game, like once at every stage.. If i set audiosync 0, the issue goes away and the music plays perfectly in rythm.


« Last Edit: June 04, 2022, 10:12:11 pm by oliver »

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: syncaudio setting
« Reply #7 on: June 05, 2022, 04:40:07 am »
It's G3258 overclocked to 4,3 GHz

Your processor in PassMark score has Single Thread Rating - 1580 points. Mine have about 2500 points in Single Thread Rating (when overclocked).

What games appear to be a problem?
« Last Edit: June 05, 2022, 04:42:47 am by haynor666 »

oliver

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 41
  • Last login:June 08, 2022, 08:43:17 am
Re: syncaudio setting
« Reply #8 on: June 08, 2022, 08:43:17 am »
Street fighter 3 third strike and Batsugun are the ones showing the issue the most noticeably. They are also the ones I know the sound tracks the best.
I have tried some more games, neogeo/snk are ok, SF3 2nd gen is ok, many more are just fine.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: syncaudio setting
« Reply #9 on: June 08, 2022, 11:03:48 am »
The "syncaudio" or "soundsync" has been there since the beginning, always activated. It just appeared as an option a few versions ago, to be able to avoid the issues described here.

In old versions, previous to the existence of fame delay, the emulation speed was assumed to be perfectly constant, so syncaudio was a good compromise to deal with situations where the speed was slightly (or greatly) off 100%, provided it was a constant value. This tipically happened when running vertical games such as 1942 or galaga on a horizontal monitor. The pitch was lowered as a trade-off.

Now, since the introduction of frame delay, it's become common to have "erratic" speed rates, even if just in a few situations. These speed drops cause annoying pitch variations. If these cases are common, it's a better compromise to dissociate audio from video, and just maybe just cope with an sporadic sample underrun that will probably pass unperceived.

Other sources of these speed fluctuations may be the actual apis used for timing in C++, that might be changing their behaviour over time and provide bad measurements on certain hardware. This would explain some appearently random speed flutuations on otherwise perfectly capable hardware.

For all these reasons I think nowadays it's better to leave syncaudio disabled. You'll just notice crackling when speed can't follow the original like with vertical games on horizontal monitor and progressive modes, that you can bypass by lowering -syncrefresh_tolerance.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi