Lines Matching defs:sec
62 audio_secs_to_bytes(Audio_hdr *hp, double sec)
66 offset = (unsigned)(0.5 + (sec *
122 audio_secs_to_str(double sec, char *str, int precision)
130 if (sec == HUGE_VAL) {
141 if (sec < 0.) {
142 sec = -sec;
145 (void) sprintf(buf, "%.*f", precision, sec);
146 (void) sscanf(buf, "%lf", &sec);
147 if (sec > 0.)
152 x = fmod(sec, 60.);
153 sec -= x;
156 sec += x;
158 if (sec >= 60.) {
160 ovflow = ((unsigned)sec) / 60;
161 sec -= (double)(ovflow * 60);
177 if (sec < 10.)
179 (void) sprintf(p, "%.*f", precision, sec);