minor FTW computation fix
This commit is contained in:
parent
66df439848
commit
4ae5e07548
@ -32,7 +32,7 @@ impl Dpll {
|
||||
}
|
||||
|
||||
pub fn frequency_to_ftw(frequency: f64, sample_rate: f64) -> i64 {
|
||||
(frequency*(u32::max_value() as f64)/sample_rate) as i64
|
||||
(frequency*(0x100000000i64 as f64)/sample_rate) as i64
|
||||
}
|
||||
|
||||
pub fn tick(&mut self, edge: bool) {
|
||||
|
Loading…
Reference in New Issue
Block a user