Lines Matching refs:hdr
118 uint8_t hdr[] = { in wav_out_init() local
146 hdr[34] = bits16 ? 0x10 : 0x08; in wav_out_init()
159 le_store (hdr + 22, hw->info.nchannels, 2); in wav_out_init()
160 le_store (hdr + 24, hw->info.freq, 4); in wav_out_init()
161 le_store (hdr + 28, hw->info.freq << (bits16 + stereo), 4); in wav_out_init()
162 le_store (hdr + 32, 1 << (bits16 + stereo), 2); in wav_out_init()
173 qemu_put_buffer (wav->f, hdr, sizeof (hdr)); in wav_out_init()
251 uint8_t hdr[44]; in wav_in_init() local
262 if (qemu_get_buffer (wav->f, hdr, sizeof(hdr)) != (int)sizeof(hdr)) { in wav_in_init()
268 if ( hdr[0] != 'R' || hdr[1] != 'I' || hdr[2] != 'F' || hdr[3] != 'F' || in wav_in_init()
269 hdr[8] != 'W' || hdr[9] != 'A' || hdr[10]!= 'V' || hdr[11]!= 'E' || in wav_in_init()
270 hdr[12]!= 'f' || hdr[13]!= 'm' || hdr[14]!= 't' || hdr[15]!= ' ' || in wav_in_init()
271 hdr[40]!= 'd' || hdr[41]!= 'a' || hdr[42]!= 't' || hdr[43]!= 'a') { in wav_in_init()
276 nchannels = le_read( hdr+22, 2 ); in wav_in_init()
277 freq = le_read( hdr+24, 4 ); in wav_in_init()
278 format = le_read( hdr+32, 2 ); in wav_in_init()
279 bits = le_read( hdr+34, 2 ); in wav_in_init()
281 wav->total_size = le_read( hdr+40, 4 ); in wav_in_init()