1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Don't lose the fractional part of latency prefernce setting!

This commit is contained in:
Paul Licameli 2018-05-28 16:13:45 -04:00
parent f52b53fc50
commit f355320e5d

View File

@ -1937,7 +1937,7 @@ int AudioIO::StartStream(const WaveTrackConstArray &playbackTracks,
mT1 = t1;
mRecordingSchedule = {};
mRecordingSchedule.mLatencyCorrection =
(gPrefs->Read(wxT("/AudioIO/LatencyCorrection"),
(gPrefs->ReadDouble(wxT("/AudioIO/LatencyCorrection"),
DEFAULT_LATENCY_CORRECTION))
/ 1000.0;
mRecordingSchedule.mDuration = mT1 - mT0;