Lines Matching defs:txwh
128 TXW_HEADER txwh ;
131 memset (&txwh, 0, sizeof (txwh)) ;
141 psf_binheader_readf (psf, "j11", 6, &txwh.format, &txwh.srate) ;
144 psf_binheader_readf (psf, "e33j", &txwh.attacklen, &txwh.repeatlen, 2) ;
145 txwh.sr2 = (txwh.attacklen >> 16) & 0xFE ;
146 txwh.sr3 = (txwh.repeatlen >> 16) & 0xFE ;
147 txwh.attacklen &= 0x1FFFF ;
148 txwh.repeatlen &= 0x1FFFF ;
150 switch (txwh.format)
160 psf_log_printf (psf, " Format : 0x%02x => ?????\n", txwh.format) ;
164 psf_log_printf (psf, " Format : 0x%02X => %s\n", txwh.format, strptr) ;
168 switch (txwh.srate)
183 txwh.srhash = ((txwh.sr2 & 0xFE) << 8) | (txwh.sr3 & 0xFE) ;
184 switch (txwh.srhash)
207 else if (txwh.srhash)
208 psf_log_printf (psf, " Sample Rate : %d (0x%X) => %d\n", txwh.srate, txwh.srhash, psf->sf.samplerate) ;
210 psf_log_printf (psf, " Sample Rate : %d => %d\n", txwh.srate, psf->sf.samplerate) ;
212 if (txwh.format == TXW_LOOPED)
213 { psf_log_printf (psf, " Attack Len : %d\n", txwh.attacklen) ;
214 psf_log_printf (psf, " Repeat Len : %d\n", txwh.repeatlen) ;
226 if (txwh.attacklen + txwh.repeatlen > psf->sf.frames)