sound streams: don't restart frame on rate change

This commit is contained in:
dinkc64 2024-05-19 09:20:30 -04:00
parent 775491965e
commit 37ad0726d5
1 changed files with 0 additions and 1 deletions

View File

@ -65,7 +65,6 @@ struct Stream {
nSampleRateFrom = rate_from;
nSampleSize = (UINT64)nSampleRateFrom * (1 << 16) / ((nSampleRateTo == 0) ? 44100 : nSampleRateTo);
nSampleSize_Otherway = (UINT64)((nSampleRateTo == 0) ? 44100 : nSampleRateTo) * (1 << 16) / ((nSampleRateFrom == 0) ? 44100 : nSampleRateFrom);
nPosition = 0; // re-start the frame
}
void exit() {
nSampleSize = nFractionalPosition = 0;