sezero / mikmod

Mikmod Sound System (mirror of git repo at https://sf.net/projects/mikmod/)
http://mikmod.sourceforge.net/
69 stars 21 forks source link

Add WinMM driver command line options for buffer size and count. #30

Closed AliceLR closed 3 years ago

AliceLR commented 3 years ago

Adds command line options to configure the number of buffers and size of buffers for the WinMM driver. The default 120ms buffer at 44100Hz works out to 5292 samples, which there definitely did not need to be 6(!) of, so the default buffer count is now 2 (can be configured up to 16 for the off chance someone's dinosaur machine actually needed 6 buffers). The minimum buffer size is 50ms because MikMod's WinMM output gets choppy below that point.

Fixes the WinMM related portions of #29. I don't have any ideas re: the OSS portions except that the MSYS2 OSS driver might just have a lot of latency.

sezero commented 3 years ago

Merged this one. See my notes in #29 and tell me whether it can be closed.