[Bug 9358] Low latency interactive buffers are not mixed properly in directsound

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Apr 25 21:10:55 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=9358





--- Comment #26 from Raymond <superquad.vortex2 at gmail.com>  2010-04-25 21:10:53 ---
(In reply to comment #19)
> If you set realtime priority, and really want the lowest latency wine doesn't
> officially support it. But these settings would help:
> 
> int ds_snd_queue_max = 10;
> int ds_snd_queue_min = 6;
> int ds_snd_shadow_maxsize = 2;
> 
> Change to 4, 4, and -1 in dsound_main.c
> 
> in primary.c you have a function called DSOUND_fraglen, change it to return 256
> instead of 512
> 
> That's probably about as low as it can get, tinkering with DSOUND_fraglen and
> ds_snd_queue_max is the only way to go lower than 90ms, but it's not officially
> supported. So do this at your own risk


http://source.winehq.org/git/wine.git/?a=commitdiff;h=7926eba0d5dd4e8b6360bafcb675e34867641629;hp=14485c365b9a624fb3785ff027adc6c5596719a0

The point is wine set period time to 22000 but rate is 44100 and the most
common sound card is HDA which has a constraint of in period_bytes and
buffer_bytes

you cannot get exact period time 22000 and buffer time 120000

        snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
128);
        snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
128);

http://git.alsa-project.org/?p=alsa-kernel.git;a=blob;f=sound/pci/hda/hda_intel.c

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list