Lines Matching refs:format
126 cpars->format.format = SND_PCM_SFMT_S16_LE;
127 cpars->format.interleave = 1;
128 cpars->format.rate = DEFAULT_CPARAMS_RATE;
129 cpars->format.voices = DEFAULT_CPARAMS_VOICES;
350 int format;
384 /* Try for a closest match on audio format */
385 format = 0;
386 /* can't use format as SND_PCM_SFMT_U8 = 0 in nto */
389 for (test_format=SDL_FirstAudioFormat(spec->format); !found ;)
391 /* if match found set format to equivalent ALSA format */
395 format = SND_PCM_SFMT_U8;
399 format = SND_PCM_SFMT_S8;
403 format = SND_PCM_SFMT_S16_LE;
407 format = SND_PCM_SFMT_S16_BE;
411 format = SND_PCM_SFMT_U16_LE;
415 format = SND_PCM_SFMT_U16_BE;
435 spec->format = test_format;
437 /* Set the audio format */
438 cparams.format.format = format;
441 cparams.format.voices = spec->channels;
444 cparams.format.rate = spec->freq;
471 pcm_len = csetup.buf.block.frag_size * spec->channels * (snd_pcm_format_width(format)/8);