Google-Code-Fork / snes9x-gtk

Automatically exported from code.google.com/p/snes9x-gtk
0 stars 0 forks source link

Snes9x cannot properly sync audio and video #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Sne9x-gtk
2. Enable OpenGL or XVideo Blitter
3. Enable "sync to vertical blank"
4. Change input to 31850Hz, with latency set at 128ms
5. Try either SDL or ALSA for audio output.
6. Enable sound sync

What is the expected output? What do you see instead?

Snes9x should be able to run video/audio smoothly at 60fps without any audio 
skips, however, snes9x-gtk is not able to keep up. Audio skips every 10-15 
seconds. Set the frequency at 31850Hz to reduce skipping but to no avail.

What version of the product are you using? On what operating system?

Snes9x-gtk 1.52; Ubuntu Linux 10.10

Installed Ubuntu on a Google CR48; the GPU is an Intel GMA 500 while the CPU is 
an Intel Atom 1.80GHz single core (Pineview family). What strikes me as odd is 
the megadrive emulator, Kega Fusion, can run flawlessly with v-sync and audio 
sync enabled. Is this an issue with Linux and Snes9x or is there something on 
my end that I can do to resolve this? If drivers have to be updated, how are 
you supposed to do it?

I should note that Open Sound System does not work, even after checking the 
settings in the audio control panel, and that Xvideo does not have an option 
for v-sync.  Again, is this an Sne9x-Linux conflict?

Original issue reported on code.google.com by nintendonerd1889@gmail.com on 27 Mar 2011 at 4:49

GoogleCodeExporter commented 9 years ago
I've found that changing my audio to whatever sound system is currently being 
used by the system (PulseAudio for me) has fixed the problem. I have the 
Playback Rate set to 32000, input rate at 35200, and buffer size at 2ms. I 
adjusted the settings, reset the emulator, and now it runs beautifully smooth. 
I'm not sure why it worked after a reset, but I have a feeling that snes9x-gtk 
has a problem with changing settings on the fly.

Original comment by MichaelV...@gmail.com on 8 Oct 2012 at 10:47