Lines Matching refs:wh
151 wFile->wh.nRiffTag = riffTag; in WaveFileCreate()
152 wFile->wh.nRiffSize = sizeof(WAVE_HEADER) - 8; in WaveFileCreate()
153 wFile->wh.nWaveTag = waveTag; in WaveFileCreate()
154 wFile->wh.nFmtTag = fmtTag; in WaveFileCreate()
155 wFile->wh.nFmtSize = sizeof(FMT_CHUNK); in WaveFileCreate()
158 wFile->wh.fc.wFormatTag = 1; in WaveFileCreate()
159 wFile->wh.fc.nChannels = (EAS_U16) nChannels; in WaveFileCreate()
160 wFile->wh.fc.nSamplesPerSec = (EAS_U32) nSamplesPerSec; in WaveFileCreate()
161 wFile->wh.fc.wBitsPerSample = (EAS_U16) wBitsPerSample; in WaveFileCreate()
162 wFile->wh.fc.nBlockAlign = (EAS_U16) (nChannels * (EAS_U16) (wBitsPerSample / 8)); in WaveFileCreate()
163 wFile->wh.fc.nAvgBytesPerSec = wFile->wh.fc.nBlockAlign * (EAS_U32) nSamplesPerSec; in WaveFileCreate()
166 wFile->wh.nDataTag = dataTag; in WaveFileCreate()
167 wFile->wh.nDataSize = 0; in WaveFileCreate()
170 FlipWaveHeader(&wFile->wh); in WaveFileCreate()
174 if (fwrite(&wFile->wh, sizeof(WAVE_HEADER), 1, wFile->file) != 1) in WaveFileCreate()
182 FlipWaveHeader(&wFile->wh); in WaveFileCreate()
225 wFile->wh.nRiffSize += (EAS_U32) count; in WaveFileWrite()
226 wFile->wh.nDataSize += (EAS_U32) count; in WaveFileWrite()
255 FlipWaveHeader(&wFile->wh); in WaveFileClose()
257 count = (EAS_I32) fwrite(&wFile->wh, sizeof(WAVE_HEADER), 1, wFile->file); in WaveFileClose()
259 FlipWaveHeader(&wFile->wh); in WaveFileClose()
374 if (fread(&wFile->wh.fc, sizeof(FMT_CHUNK), 1, wFile->file) != 1) in WaveFileOpen()