There has been a bug in the OutputPlayingSounds function for a week or so
that hits this assert:
| Assert(PlayingSound->SamplesPlayed >= LoadedSound->SampleCount)
|
I figured it would be hit eventually, but when the 1.9f dSample multiplier was
removed, it masked the bug.
It is reproducible by setting the dSample multiplier back to 1.9f and letting
the game run for a few minutes with day150.
My best guess is a floating point precision/rounding/casting error is causing
ChunksRemainingInSound to be one chunk too small, also making ChunksToMix
one chunk too small.
Changing this line prevents the crash, but is super janky :):
| - ChunksToMix = ChunksRemainingInSound;
+ ChunksToMix = ChunksRemainingInSound + 1;
|
There was no doubt in my mind this wasn't in the platform code, but I set up
a windows build anyway to be make sure I wasn't going crazy.
By the way, how can you make visual studio remember the work directory,
currently I have to set it every time.