Lines Matching full:bitspersample
200 unsigned bitsPerSample = little2u(&fmt[14]);
201 if (bitsPerSample != 8 && bitsPerSample != 16 && bitsPerSample != 24 &&
202 bitsPerSample != 32) {
204 fprintf(stderr, "bitsPerSample %u != 8 or 16 or 24 or 32\n", bitsPerSample);
208 unsigned bytesPerFrame = (bitsPerSample >> 3) * channels;
212 switch (bitsPerSample) {
331 unsigned bitsPerSample;
334 bitsPerSample = 16;
337 bitsPerSample = 8;
340 bitsPerSample = 32;
343 bitsPerSample = 24;
346 bitsPerSample = 32;
349 bitsPerSample = 0;
352 unsigned blockAlignment = (bitsPerSample >> 3) * info->channels;
356 wav[34] = bitsPerSample;