http://bugs.winehq.org/show_bug.cgi?id=28723
Raymond superquad.vortex2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |superquad.vortex2@gmail.com
--- Comment #47 from Raymond superquad.vortex2@gmail.com 2011-11-11 22:57:25 CST --- (In reply to comment #21)
Interesting issue. I've never seen native tests report anything else beside 10.0000 and 10.1587ms (alignment for Intel HDA) shared mode default periods. So reporting anything else is out of question.
However, what native is said to do and Wine doesn't is to clamp period and duration. From what I've read (but not yet tested, which is why I've not yet written that patch),
- max duration is 2s in shared mode, 500ms in exclusive mode
- min. duration should probably be 3*period (at least for Wine)
- min period is 3ms (from GetDefaultPeriod)
- max period is 100ms (I think I read that somewhere)
Note that Wine still has a related bug: it must ignore period in shared mode.
http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=2ae66c26550cd94b0e...
Unless you are using intel hda controller, you won't get exactly 10ms period time by default
Min period of 3 ms is not supported by all alsa sound drivers (e.g. ymf724 which update hw_ptr in 5.333 ms intervals)