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