Lines Matching defs:ti
113 sun_prepare_header(struct track_info *ti, void **hdrp, size_t *lenp, int *leftp)
117 int sunenc, oencoding = ti->encoding;
120 switch (ti->encoding) {
126 if (ti->precision == 16 || ti->precision == 32)
127 ti->encoding = AUDIO_ENCODING_SLINEAR_BE;
134 if (ti->precision == 16 || ti->precision == 32)
135 ti->encoding = AUDIO_ENCODING_SLINEAR_BE;
142 if (ti->precision == 16 || ti->precision == 32)
143 ti->encoding = AUDIO_ENCODING_SLINEAR_BE;
148 ti->encoding = AUDIO_ENCODING_SLINEAR_BE;
154 if (audio_encoding_to_sun(ti->encoding, ti->precision, &sunenc) != 0) {
155 if (!ti->qflag && !warned) {
162 s, ti->precision);
164 ti->format = AUDIO_FORMAT_NONE;
170 if (ti->outfd == STDOUT_FILENO)
172 else if (ti->total_size != -1)
173 auh.data_size = htonl(ti->total_size);
177 auh.sample_rate = htonl(ti->sample_rate);
178 auh.channels = htonl(ti->channels);
179 if (ti->header_info) {
182 infolen = ((len = strlen(ti->header_info)) + 7) & 0xfffffff8;
195 sun_write_get_conv_func(struct track_info *ti)
200 switch (ti->encoding) {
206 if (ti->precision == 16)
208 else if (ti->precision == 32)
216 if (ti->precision == 16)
218 else if (ti->precision == 32)
226 if (ti->precision == 16)
228 else if (ti->precision == 32)