Home | History | Annotate | Download | only in src

Lines Matching full:bitspersample

166     FDKfread_EL(&(wav->header.bitsPerSample), 2, 1, wav->fp);
270 if (nBits == wav->header.bitsPerSample) {
271 result = FDKfread_EL(buffer, wav->header.bitsPerSample >> 3, numSamples, wav->fp) ;
277 result += FDKfread_EL(&tmp, wav->header.bitsPerSample >> 3, 1, wav->fp) ;
280 if ( !IS_LITTLE_ENDIAN() && wav->header.bitsPerSample != 24 && wav->header.bitsPerSample < 32) {
281 tmp >>= (32-wav->header.bitsPerSample);
285 if (wav->header.bitsPerSample > nBits)
286 tmp >>= (wav->header.bitsPerSample-nBits);
288 tmp <<= (nBits-wav->header.bitsPerSample);
380 * \param bitsPerSample desired number of bits per audio sample of the resulting WAV file
385 INT WAV_OutputOpen(HANDLE_WAV *pWav, const char *outputFilename, INT sampleRate, INT numChannels, INT bitsPerSample)
395 if (bitsPerSample != 16 && bitsPerSample != 24 && bitsPerSample != 32)
397 FDKprintfErr("WAV_OutputOpen(): Invalid argument (bitsPerSample).\n");
416 wav->header.bitsPerSample = LittleEndian16((SHORT)bitsPerSample);
418 wav->header.blockAlign = LittleEndian16((SHORT)(numChannels * (bitsPerSample >> 3)));
472 int bps = Unpack(wav->header.bitsPerSample);