mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 06:35:46 +01:00
fix float calc:
divide large number. not multiply a small.
This commit is contained in:
parent
f0c1d58f59
commit
9fc3883cbb
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue