Lines Matching defs:ti
183 write_header(struct track_info *ti)
190 switch (ti->format) {
193 if (sun_prepare_header(ti, &hdr, &hdrlen, &left) != 0)
197 if (wav_prepare_header(ti, &hdr, &hdrlen, &left) != 0)
214 if (ti->header_info) {
215 iv[veclen].iov_base = ti->header_info;
216 iv[veclen].iov_len = (int)strlen(ti->header_info) + 1;
228 if (writev(ti->outfd, iv, veclen) != tlen)
233 write_get_conv_func(struct track_info *ti)
236 switch (ti->format) {
239 return sun_write_get_conv_func(ti);
241 return wav_write_get_conv_func(ti);