Lines Matching refs:pfmt
113 WAVEFORMATEXTENSIBLE* pfmt, in check_format() argument
128 pfmt->Format.wFormatTag = extend ? WAVE_FORMAT_EXTENSIBLE : WAVE_FORMAT_PCM; in check_format()
129 pfmt->Format.nChannels = channels; in check_format()
130 pfmt->Format.nSamplesPerSec = hertz; in check_format()
131 pfmt->Format.nAvgBytesPerSec = channels * bytewidth * hertz; in check_format()
132 pfmt->Format.nBlockAlign = channels * bytewidth; in check_format()
133 pfmt->Format.wBitsPerSample = bytewidth * 8; in check_format()
134 pfmt->Format.cbSize = extend ? 22 : 0; in check_format()
135 pfmt->Samples.wValidBitsPerSample = width; in check_format()
136 pfmt->dwChannelMask = 0; in check_format()
137 memcpy(&pfmt->SubFormat, SubformatPcm, 16); in check_format()
140 error = waveInOpen(0, dev, &pfmt->Format, 0, 0, WAVE_FORMAT_QUERY); in check_format()
142 error = waveOutOpen(0, dev, &pfmt->Format, 0, 0, WAVE_FORMAT_QUERY); in check_format()
156 static unsigned negotiate_format(sox_format_t* ft, WAVEFORMATEXTENSIBLE* pfmt, unsigned dev) in negotiate_format() argument
169 …error = check_format(pfmt, recording, dev, ft->signal.channels, precision, (unsigned)ft->signal.ra… in negotiate_format()