commit | 57579de875708c6fb2e37695b28ccb31659490a9 | [log] [tgz] |
---|---|---|
author | Ozkan Sezer <sezeroz@gmail.com> | Wed Oct 14 23:01:05 2020 +0300 |
committer | Ozkan Sezer <sezeroz@gmail.com> | Wed Oct 14 23:01:05 2020 +0300 |
tree | 46805a6d242d459ec2113870ec88cb33cd14efd7 | |
parent | 050e636c775e1c9b96244a74310a40716a788574 [diff] |
SDL_os2audio.c (OS2_OpenDevice): change spec->samples assignment: Original code assigned MCIMixSetup.ulSamplesPerSec value to it, but it is just the freq... We now change spec->samples only either if it is 0 or we changed the frequency, by picking a default of ~46 ms at desired frequency (code taken from SDL_audio.c:prepare_audiospec()). With this, the crashes I have been experiencing are gone.