13
0

fix float calc:

divide large number. not multiply a small.
This commit is contained in:
Robin Gareus 2015-10-03 17:44:56 +02:00
parent f0c1d58f59
commit 9fc3883cbb

View File

@ -37,7 +37,7 @@ public:
}
void set_max_time(double samplerate, uint32_t period_size) {
m_max_time_us = (1e6 / samplerate) * period_size;
m_max_time_us = period_size * 1e6 / samplerate;
}
void set_max_time_us(uint64_t max_time_us) {