Searched refs:hz (Results 1 – 2 of 2) sorted by relevance
150 float hz = 441; in main() local153 sine[i].left = sin((float) (i / (sr / hz)) * pi2 ) * 32000.0; in main()157 square[i].left = (i % (unsigned) (sr / hz)) < 50 ? 32767 : -32768; in main()161 sawtooth[i].left = ((((int) (i % (unsigned) (sr / hz))) - 50) / 100.0) * 60000.0 - 30000.0; in main()
445 static long hz; // cache discovered hz in snprcent() local447 if (hz <= 0) { in snprcent()448 hz = sysconf(_SC_CLK_TCK); in snprcent()449 if (hz <= 0) { in snprcent()450 hz = 1000; in snprcent()455 time = (time * 100 + (hz / 2)) / hz; in snprcent()