MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Elapido
Lurker
Reged: 04/10/04
Posts: 225
Send PM


MAMEUI FX sound fix to MAME new
#296800 - 09/29/12 07:54 PM


Recently someone wrote that MAMEUIFX is able to run 5* hz games at 60hz (I suppose that with the -nothrottle -syncrefresh options), not only totally smooth, but also fixing the sound problems that come with the frequency adjustment. Would it be possible to apply this sound fix to a standard source of MAME (not MAMEUI), since I'm compiling and using my own build for use with a MAME frontend. What file/s do I have to modify and how? Thanx.



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: MAMEUI FX sound fix to MAME [Re: Elapido]
#296802 - 09/29/12 08:26 PM


CabMAME has a patch that adds "soundsync" that might help you.
You can download all the patches and apply just the one you want...

http://community.arcadeinfo.de/showthread.php?9555-ENGLISH-Overview

Quote:


SoundSync
With newer MAME versions there can be problems with stuttering sound if you use vsync or tripplebuffer. Thats because of the emulation gets slowed down and there aren't enough sound samples generated.

SoundSync changes the playback rate of the soundbuffer based on the emulations speed.
If Pac-Man runs with a speed of 98%, the soundbuffer playback gets slowed down to 98% also eliminating the stuttering. However note that the sound also gets a little pitched and slowed down, although most people won't hear this at all. This also works with games that run too fast (NeoGeo for example).





GroovyMAME support forum on BYOAC



StilettoAdministrator
They're always after me Lucky ROMS!
Reged: 03/07/04
Posts: 6472
Send PM


Re: MAMEUI FX sound fix to MAME new [Re: krick]
#296803 - 09/29/12 08:30 PM


Also, it would be silly but you can probably use MAMEUIFX with a different frontend. If MAMEUI can be used from the command line, then MAMEUIFX probably can as well.

- Stiletto



Elapido
Lurker
Reged: 04/10/04
Posts: 225
Send PM


Re: MAMEUI FX sound fix to MAME new [Re: krick]
#296835 - 09/30/12 12:19 PM



I've applied the soundsync diff from Cabmame 146 and I get these errors when compiling my build:


Code:

Compiling src/osd/windows/sound.c...
src/osd/windows/sound.c: In member function 'virtual void windows_osd_interface:
:update_audio_stream(const INT16*, int)':
src/osd/windows/sound.c:207: error: 'class running_machine' has no member named
'speed_percent'
src/osd/windows/sound.c:209: error: 'class running_machine' has no member named
'speed_percent'
make: *** [obj/windows/osd/windows/sound.o] Error 1




Andypc
Andypc
Reged: 10/27/07
Posts: 38
Send PM


Re: MAMEUI FX sound fix to MAME new [Re: Elapido]
#296836 - 09/30/12 01:32 PM


Download Cabmame 0.141 it works really well and the Soundsync is excellent. Soundsync is not working correctly in 0.146. See the thread below



AeroCityMayor
Entity formerly known as alien_mame
Reged: 11/11/03
Posts: 2438
Loc: Wakefield, West Yorks, UK.
Send PM


Re: MAMEUI FX sound fix to MAME new [Re: Stiletto]
#296863 - 09/30/12 10:55 PM


> Also, it would be silly but you can probably use MAMEUIFX with a different frontend.
> If MAMEUI can be used from the command line, then MAMEUIFX probably can as well.
>
> - Stiletto

Very silly indeed!

I have that setup in my MAME cab

Cheers,

Ralph.



Coherance of posts inversely proportional to Foster's consumption!!!




krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: MAMEUI FX sound fix to MAME new [Re: Elapido]
#296872 - 10/01/12 05:19 AM


Hmmm. It seems that there were core changes in MAME that broke the soundsync patch in 0.145 and later.

Current versions of GroovyMAME implement soundsync a different way at a lower level so that it's OS independent. The CabMAME patch was windows-only.

If you're using an arcade monitor, you should check out GroovyMAME and see if it does what you need.



GroovyMAME support forum on BYOAC


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 354 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1997