Home | History | Annotate | Download | only in audio

Lines Matching defs:fmt

86     audfmt_e fmt;
92 static void GCC_FMT_ATTR (2, 3) oss_logerr (int err, const char *fmt, ...)
96 va_start (ap, fmt);
97 AUD_vlog (AUDIO_CAP, fmt, ap);
106 const char *fmt,
114 va_start (ap, fmt);
115 AUD_vlog (AUDIO_CAP, fmt, ap);
164 static int aud_to_ossfmt (audfmt_e fmt)
166 switch (fmt) {
180 dolog ("Internal logic error: Bad audio format %d\n", fmt);
188 static int oss_to_audfmt (int ossfmt, audfmt_e *fmt, int *endianness)
193 *fmt = AUD_FMT_S8;
198 *fmt = AUD_FMT_U8;
203 *fmt = AUD_FMT_S16;
208 *fmt = AUD_FMT_U16;
213 *fmt = AUD_FMT_S16;
218 *fmt = AUD_FMT_U16;
233 dolog ("format | %10d | %10d\n", req->fmt, obt->fmt);
274 int fmt, freq, nchannels;
290 fmt = req->fmt;
292 if (ioctl (fd, SNDCTL_DSP_SAMPLESIZE, &fmt)) {
293 oss_logerr2 (errno, typ, "Failed to set sample size %d\n", req->fmt);
356 obt->fmt = fmt;
364 if ((req->fmt != obt->fmt) ||
519 req.fmt = aud_to_ossfmt (as->fmt);
529 err = oss_to_audfmt (obt.fmt, &effective_fmt, &endianness);
537 obt_as.fmt = effective_fmt;
685 req.fmt = aud_to_ossfmt (as->fmt);
694 err = oss_to_audfmt (obt.fmt, &effective_fmt, &endianness);
702 obt_as.fmt = effective_fmt;