Lines Matching refs:pwfx
175 alsa_set_format(snd_pcm_t * pcm, RD_WAVEFORMATEX * pwfx)
184 samplewidth = pwfx->wBitsPerSample / 8;
204 if (pwfx->wBitsPerSample == 16)
229 rate = pwfx->nSamplesPerSec;
236 audiochannels = pwfx->nChannels;
237 if ((err = snd_pcm_hw_params_set_channels(pcm, hwparams, pwfx->nChannels)) < 0)
301 alsa_format_supported(RD_WAVEFORMATEX * pwfx)
321 if (pwfx->wFormatTag != WAVE_FORMAT_PCM)
323 if ((pwfx->nChannels != 1) && (pwfx->nChannels != 2))
325 if ((pwfx->wBitsPerSample != 8) && (pwfx->wBitsPerSample != 16))
327 if ((pwfx->nSamplesPerSec != 44100) && (pwfx->nSamplesPerSec != 22050))
334 alsa_set_format_out(RD_WAVEFORMATEX * pwfx)
336 if (!alsa_set_format(out_handle, pwfx))
339 samplewidth_out = pwfx->wBitsPerSample / 8;
340 audiochannels_out = pwfx->nChannels;
341 rate_out = pwfx->nSamplesPerSec;
442 alsa_set_format_in(RD_WAVEFORMATEX * pwfx)
446 if (!alsa_set_format(in_handle, pwfx))
455 samplewidth_in = pwfx->wBitsPerSample / 8;
456 audiochannels_in = pwfx->nChannels;
457 rate_in = pwfx->nSamplesPerSec;