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: Any ideas why using d3d instead of ddraw causes sound to lose pitch?  (Read 3782 times)

0 Members and 1 Guest are viewing this topic.

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1216
  • Last login:December 19, 2018, 01:29:48 am
running gm .145, xp x64, core2duo 2.4ghz, 2gb ram, 4890

all games run fine in ddraw, but lose sound pitch in d3d (wanted d3d for hlsl effects)

very easy to hear when playing rtype

any ideas?

cheers

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: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #1 on: February 16, 2012, 05:42:34 pm »
Since v0.145 the sound is automatically tied to emulation speed, so a drop in pitch means a slow-down in emulation. Check the game's speed is 100%.
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

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1216
  • Last login:December 19, 2018, 01:29:48 am
Re: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #2 on: February 16, 2012, 05:45:07 pm »
rock solid in ddraw, but fluctuates in d3d about 95% to 105% like its not syncing properly

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: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #3 on: February 16, 2012, 06:03:18 pm »
It shouldn't fluctuate  :(
Does it happen even if hlsl is not enabled?
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

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1216
  • Last login:December 19, 2018, 01:29:48 am
Re: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #4 on: February 16, 2012, 06:06:21 pm »
yes, if I leave hlsl off and just change ddraw to d3d it fluctuates

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1216
  • Last login:December 19, 2018, 01:29:48 am
Re: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #5 on: February 16, 2012, 06:07:07 pm »
Could you test that, just try rtype with d3d - see how the sound is please?

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: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #6 on: February 16, 2012, 06:34:45 pm »
Just tested rtype on my cab, GM v0.145, both ddraw and d3d work just the same, speed is 100% and sound is OK.

Is there another monitor attached to your system, apart from the arcade monitor?
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

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1216
  • Last login:December 19, 2018, 01:29:48 am
Re: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #7 on: February 16, 2012, 06:41:02 pm »
Just one monitor, dvi adapter to vga cable to vga monitor

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: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #8 on: February 16, 2012, 06:48:43 pm »
Just one monitor, dvi adapter to vga cable to vga monitor


I once had a similar problem with erratic frame rates that got solved disconnecting the secondary monitor and rebooting (just keeping one monitor attached). After that, I think that re-enabling the connection didn't cause the problem, interesting.

Something I'd try, considering that for HD 4xxx cards the DVI is the primary output, is to swap your monitors, and connect the arcade monitor to the DVI instead.

EDIT: Sorry, I thought you were saying you have 2 monitors...
« Last Edit: February 16, 2012, 06:55:06 pm by Calamity »
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

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1216
  • Last login:December 19, 2018, 01:29:48 am
Re: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #9 on: February 16, 2012, 07:02:20 pm »
its a dual DVI card, I have powered down and swapped the ports.

Seems to be OK now!

I will test if out some more

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1216
  • Last login:December 19, 2018, 01:29:48 am
Re: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #10 on: February 16, 2012, 07:15:34 pm »
Rock solid so far, thanks for all your help Calamity

I would never guess that this is just a standard pc crt, perfect res, perfect sync and hlsl effects ;) 

Paradroid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 687
  • Last login:April 12, 2024, 04:50:06 pm
    • SCART Hunter
Re: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #11 on: February 17, 2012, 06:59:21 am »
Photos? Would love to see what you're seeing!

HLSL can be pretty cool. I was really impressed with it in the beginning. Of course, I can see some of its shortcomings after spending lots of time with real CRTs. However, you've got a kind of hybrid setup going. Very interesting!
My MAME/SCART/CRT blog: SCART Hunter

jimmy2x2x

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1216
  • Last login:December 19, 2018, 01:29:48 am
Re: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #12 on: February 17, 2012, 01:54:23 pm »
Well I thought I had it solved, then it returned on bootup.

I was running VNC server in the background for remote admin, removed this and it seems fine again (didnt think to mention it!)
I suspect this was the real culprit as it interfaces with something VNC mirror driver as a graphics device.

Paradroid: for me its an ideal setup I can run everything from very low res arcade game to street fighter iv in 1600x1200 at authentic resolutions and refresh rates - I will try and capture some decent stills later on, but I am very happy with the hlsl effects.

here is my current config:

Code: [Select]
#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable               1
hlslpath                  hlsl
hlsl_ini_read             0
hlsl_ini_write            0
hlslini                   %g
hlsl_prescale_x           0
hlsl_prescale_y           0
hlsl_preset               -1
hlsl_write               
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_alpha         3.0
shadow_mask_texture       aperture.png
shadow_mask_x_count       320
shadow_mask_y_count       240
shadow_mask_usize         0.09375
shadow_mask_vsize         0.109375
curvature                 0.0
pincushion                0.02
scanline_alpha            0.75
scanline_size             1.0
scanline_height           0.7
scanline_bright_scale     1.0
scanline_bright_offset    0.0
scanline_jitter           0.05
defocus                   0.0,0.0
converge_x                0.0,0.0,0.0
converge_y                0.0,0.0,0.0
radial_converge_x         0.0,0.0,0.0
radial_converge_y         0.0,0.0,0.0
red_ratio                 1.0,0.0,0.0
grn_ratio                 0.0,1.0,0.0
blu_ratio                 0.0,0.0,1.0
saturation                1.3
offset                    0.0,0.0,0.0
scale                     1.0,1.0,1.0
power                     1.0,1.0,1.0
floor                     0.0,0.0,0.0
phosphor_life             0.4,0.3,0.3
yiq_enable                0
yiq_cc                    3.59754545
yiq_a                     0.5
yiq_b                     0.5
yiq_o                     0.0
yiq_p                     1.0
yiq_n                     1.0
yiq_y                     6.0
yiq_i                     1.2
yiq_q                     0.6
yiq_scan_time             52.6
yiq_phase_count           2

Nothing over the top, scanlines, very slight pincushion and some over saturation (remember to switch video to d3d to enable hlsl)

info on GM + VGA monitor here http://forum.arcadecontrols.com/index.php?topic=112869.0

pics to follow...

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: Any ideas why using d3d instead of ddraw causes sound to lose pitch?
« Reply #13 on: February 17, 2012, 04:01:57 pm »
I was running VNC server in the background for remote admin, removed this and it seems fine again (didnt think to mention it!)
I suspect this was the real culprit as it interfaces with something VNC mirror driver as a graphics device.

Yes that makes a lot of sense now that you mention that, and is an interesting discovery as a possible source of erratic frame rates. It's also surprising that ddraw doesn't seem to be affected by it! I always preferred ddraw to d3d, it's a shame it's almost deprecated.

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