Home | History | Annotate | Download | only in play

Lines Matching defs:play

1 /*	$NetBSD: play.c,v 1.64 2024/03/04 06:29:35 mrg Exp $	*/
31 __RCSID("$NetBSD: play.c,v 1.64 2024/03/04 06:29:35 mrg Exp $");
56 static void play(char *);
192 bufsize = info.play.buffer_size;
203 play(*argv++);
311 play(char *file)
406 * play the file on the file descriptor fd
485 &info.play.encoding, &info.play.precision)) {
494 info.play.sample_rate = ntohl(sunhdr->sample_rate);
495 info.play.channels = ntohl(sunhdr->channels);
502 hdr_len = audio_wav_parse_hdr(hdr, fsz, &info.play.encoding,
503 &info.play.precision, &info.play.sample_rate, &info.play.channels,
527 info.play.port = port;
529 info.play.gain = volume;
531 info.play.balance = balance;
534 info.play.sample_rate = sample_rate;
536 info.play.channels = channels;
538 info.play.encoding = encoding;
540 info.play.precision = precision;
546 const char *enc = audio_enc_from_val(info.play.encoding);
551 info.play.sample_rate,
552 info.play.channels,
554 info.play.precision,
560 if (info.play.encoding == AUDIO_ENCODING_LIBAUDIO_FLOAT32 ||
561 info.play.encoding == AUDIO_ENCODING_LIBAUDIO_FLOAT64) {
564 if (info.play.encoding == AUDIO_ENCODING_LIBAUDIO_FLOAT32) {
575 info.play.encoding = AUDIO_ENCODING_SLINEAR_LE;
576 info.play.precision = 32;
580 info.play.precision,
581 audio_enc_from_val(info.play.encoding));