Lines Matching refs:dwdh
126 DWD_HEADER dwdh ; in dwd_read_header() local
137 psf_binheader_readf (psf, "11", &dwdh.major, &dwdh.minor) ; in dwd_read_header()
138 psf_binheader_readf (psf, "e4j1", &dwdh.id, 1, &dwdh.compression) ; in dwd_read_header()
139 psf_binheader_readf (psf, "e211", &dwdh.srate, &dwdh.channels, &dwdh.bitwidth) ; in dwd_read_header()
140 psf_binheader_readf (psf, "e24", &dwdh.maxval, &dwdh.datalen) ; in dwd_read_header()
141 psf_binheader_readf (psf, "e44", &dwdh.frames, &dwdh.offset) ; in dwd_read_header()
144 dwdh.major, dwdh.minor, dwdh.id) ; in dwd_read_header()
145 psf_log_printf (psf, " Compression : %d => ", dwdh.compression) ; in dwd_read_header()
147 if (dwdh.compression != 0) in dwd_read_header()
156 dwdh.srate, dwdh.channels, dwdh.bitwidth) ; in dwd_read_header()
158 switch (dwdh.bitwidth) in dwd_read_header()
170 psf_log_printf (psf, "*** Bad bit width %d\n", dwdh.bitwidth) ; in dwd_read_header()
174 if (psf->filelength != dwdh.offset + dwdh.datalen) in dwd_read_header()
175 …log_printf (psf, " Data Length : %d (should be %D)\n", dwdh.datalen, psf->filelength - dwdh.off… in dwd_read_header()
176 dwdh.datalen = (unsigned int) (psf->filelength - dwdh.offset) ; in dwd_read_header()
179 psf_log_printf (psf, " Data Length : %d\n", dwdh.datalen) ; in dwd_read_header()
181 psf_log_printf (psf, " Max Value : %d\n", dwdh.maxval) ; in dwd_read_header()
182 psf_log_printf (psf, " Frames : %d\n", dwdh.frames) ; in dwd_read_header()
183 psf_log_printf (psf, " Data Offset : %d\n", dwdh.offset) ; in dwd_read_header()
185 psf->datalength = dwdh.datalen ; in dwd_read_header()
186 psf->dataoffset = dwdh.offset ; in dwd_read_header()
190 psf->sf.samplerate = dwdh.srate ; in dwd_read_header()
191 psf->sf.channels = dwdh.channels ; in dwd_read_header()