mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-07 07:38:04 -04:00
make sound rates platform dependent
This commit is contained in:
parent
c825b167e9
commit
82b4854771
4 changed files with 7 additions and 2 deletions
|
@ -116,7 +116,7 @@ unsigned int plat_get_ticks_ms(void)
|
|||
|
||||
ret = (unsigned)tv.tv_sec * 1000;
|
||||
/* approximate /= 1000 */
|
||||
ret += ((unsigned)tv.tv_usec * 4195) >> 22;
|
||||
ret += ((unsigned)tv.tv_usec * 4194) >> 22;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue