Lines Matching refs:WH
233 struct WaveHeader_ WH; in startwrite() local
237 memset(&WH, 0, sizeof(struct WaveHeader_)); in startwrite()
249 lsx_writebuf(ft, &WH, (size_t) 32); in startwrite()
290 struct WaveHeader_ WH; in stopwrite() local
304 memset(&WH, 0, sizeof(struct WaveHeader_)); in stopwrite()
305 memcpy(WH.filetype, "LM8953", 6); in stopwrite()
306 for (i=0;i<10;i++) WH.nulls[i]=0; in stopwrite()
307 for (i=0;i<6;i++) WH.dummy_aeg[i]=0; in stopwrite()
308 for (i=0;i<2;i++) WH.unused[i]=0; in stopwrite()
309 for (i=0;i<2;i++) WH.dummy_aeg[i] = 0; in stopwrite()
310 for (i=2;i<6;i++) WH.dummy_aeg[i] = 0x7F; in stopwrite()
312 WH.format = 0xC9; /* loop off */ in stopwrite()
315 if (ft->signal.rate < 24000) WH.sample_rate = 3; in stopwrite()
316 else if (ft->signal.rate < 41000) WH.sample_rate = 1; in stopwrite()
317 else WH.sample_rate = 2; in stopwrite()
354 WH.atc_length[0] = 0xFF & AttackLength; in stopwrite()
355 WH.atc_length[1] = 0xFF & (AttackLength >> 8); in stopwrite()
356 WH.atc_length[2] = (0x01 & (AttackLength >> 16)) + in stopwrite()
357 magic1[WH.sample_rate]; in stopwrite()
359 WH.rpt_length[0] = 0xFF & LoopLength; in stopwrite()
360 WH.rpt_length[1] = 0xFF & (LoopLength >> 8); in stopwrite()
361 WH.rpt_length[2] = (0x01 & (LoopLength >> 16)) + in stopwrite()
362 magic2[WH.sample_rate]; in stopwrite()
365 lsx_writebuf(ft, &WH, (size_t) 32); in stopwrite()