PDA

View Full Version : VSYNC makes sound go nuts!


ethylene
10 June 2003, 05:58
In all v0.8.22Rn releases so far, enabling VSYNC causes sound problems.

All the games/cracktros I tested in NTSC mode, the pitch increases like half an octave, and breaks up / skips badly.

In PAL mode, about half the games suffered from the break up / skip, but pitch was correct.

Messing with the driver lag slider does have an effect, but not enough to correct the pitch.

Increasing frameskip to four cures the break up / skip, but not the pitch.

Disabling VSYNC corrects the sound problem completely, but then it's rip-ville. Switching to desktop mode does, too, but that's no fun!

Activating / deactivating PowerStrip has no effect.

I run in 16-bit modes, 720x480 60Hz for NTSC, 720x576 50Hz for PAL.

I'm not using the OpenGL mode.

All my drivers are current-ish :nervous, and using a different soundcard had no effect.

I'm happy at v0.8.21R4, but I'm envious of all these lucky people and their happy flashing LEDs! And the sound filtering is cool, too.

I'll attach my fullscreen config files (generated with v0.8.22R7), and here's my system:

SuperPower SP-P2BXA (440BX)
Intel Pentium III 550@616MHz (Katmai)
256MB PC133 2ns SDRAM
ASUS V6800-AGP (Geforce 256 DDR)
Creative Soundblaster Live! 5.1
Creative AWE64

Win98SE / DirectX 8.1

Toni Wilen
17 June 2003, 17:31
Unfortunately your CPU power is too low for flawless VSync mode emulation. Even one skipped frame in VSync-mode causes huge slowdown..

Enabling lores and disabling linedoubling may help..

Enverex
23 June 2003, 15:26
This is more what he is refering to, when you set V-Sync, the sound seems to be locked to the framerate, so when you set the refresh rate to 85 or so and turn on V-Sync, this happens....

http://atomnet.co.uk/dl?depot=battles.wav

NS

ethylene
23 June 2003, 18:31
No... I don't think it's that. When I'm in fullscreen mode, I'm always using 50 or 60Hz.

Now, when I'm on the desktop in windowed mode it's at 85Hz. Ironically, it functions well at 85Hz with VSYNC enabled...

:confused

NightShade737, your problem sounds different. In your example, the tempo seems to be too fast, although since I've never heard the tune played properly, it's hard to tell.

In my case, the tempo's right (as you'll hear), but the individual samples seem too fast, and broken-up.

I'll post some MP3 files to illustrate. They were both taken using WinUAE v0.8.22R7, 16bit 720x480 60Hz. The only difference was enabling / disabling of VSYNC.

ethylene
23 June 2003, 18:32
Skid Row cracktro, VSYNC disabled:

ethylene
23 June 2003, 18:33
Skid Row cracktro, VSYNC enabled:

ethylene
23 June 2003, 18:45
Originally posted by Toni Wilen
Unfortunately your CPU power is too low for flawless VSync mode emulation.

Oh boy... Upgrade time again already?! :D

Enabling lores and disabling linedoubling may help..

OK I tried it, but the problem persisted.

CPU power too low? Why does it work at 85Hz on the desktop with VSYNC enabled? I know that scenario is not practical, but it does work quite smoothly (sound-wise).

ethylene
21 August 2003, 03:30
WinUAE 0.8.22 Release 9 WIP (17.08.2003)
========================================

Coming soon..

Bugs fixed

- compiler misoptimization of some rare instructions
(affected 0.8.22R8 only, usually caused GURUs)
- bsdsocket emulation (connection freeze, IRCD, AmyGate etc..)
- NTSC vsync sound
- Windows 2K/XP CD detection problems in non-ASPI mode
- more compatible audio emulation
(TBL's Tint, some demos playing only noise)
- ticking/unticking 68000 "more compatible" checkbox on the fly
does not crash the emulated Amiga anymore
- AVI capture sound sync

:great What was it?