Lines Matching defs:hdrp
213 audio_enc_to_str(Audio_hdr *hdrp, char *str)
225 switch (hdrp->channels) {
238 (void) sprintf(cbuf, "%u-channel", hdrp->channels); break;
241 switch (hdrp->encoding) {
254 if (hdrp->samples_per_unit != 1)
257 (void) sprintf(pbuf, "%u-bit", hdrp->bytes_per_unit * 8);
264 if (hdrp->samples_per_unit != 0) {
267 (double)(hdrp->bytes_per_unit * 8) /
268 (double)hdrp->samples_per_unit);
275 (void) sprintf(sbuf, "%.3fkHz", ((double)hdrp->sample_rate / 1000.));