Lines Matching refs:lpwfex
53 HRESULT CEncoder::SetInputType(LPWAVEFORMATEX lpwfex, bool bJustCheck)
57 if (lpwfex->wFormatTag == WAVE_FORMAT_PCM)
59 if (lpwfex->nChannels == 1 || lpwfex->nChannels == 2)
61 if (lpwfex->nSamplesPerSec == 48000 ||
62 lpwfex->nSamplesPerSec == 44100 ||
63 lpwfex->nSamplesPerSec == 32000 ||
64 lpwfex->nSamplesPerSec == 24000 ||
65 lpwfex->nSamplesPerSec == 22050 ||
66 lpwfex->nSamplesPerSec == 16000 ||
67 lpwfex->nSamplesPerSec == 12000 ||
68 lpwfex->nSamplesPerSec == 11025 ||
69 lpwfex->nSamplesPerSec == 8000)
71 if (lpwfex->wBitsPerSample == 16)
75 memcpy(&m_wfex, lpwfex, sizeof(WAVEFORMATEX));
108 HRESULT CEncoder::SetDefaultOutputType(LPWAVEFORMATEX lpwfex)
112 if(lpwfex->nChannels == 1 || m_mabsi.bForceMono)
115 if((lpwfex->nSamplesPerSec < m_mabsi.dwSampleRate) || (lpwfex->nSamplesPerSec % m_mabsi.dwSampleRate != 0))
116 m_mabsi.dwSampleRate = lpwfex->nSamplesPerSec;