Lines Matching refs:channels
52 int channels;
303 #define FORMAT2CODE(channels, bits, inSigned, outSigned, inBigEndian, outBigEndian) \
304 (channels << 20) \
311 #define FORMAT2CODE8(channels, inSigned, outSigned) \
312 FORMAT2CODE(channels, 8, inSigned, outSigned, 0, 0)
314 #define FORMAT2CODE16(channels, inBigEndian, outBigEndian) \
315 FORMAT2CODE(channels, 16, 1, 1, inBigEndian, outBigEndian)
344 TRACE3("channels=%d, sampleSizeInBits=%d, frameSize=%d, ",
345 (int) info->channels, (int) info->sampleSizeInBits, (int) info->frameSize);
351 switch (FORMAT2CODE(info->channels,
445 int channels, float sampleRate,
450 if (channels > 0) {
451 frameSizeInBytes = ((significantBits + 7) / 8) * channels;
456 TRACE4("AddAudioFormat with sigBits=%d bits, frameSize=%d bytes, channels=%d, sampleRate=%d ",
457 significantBits, frameSizeInBytes, channels, (int) sampleRate);
461 channels, sampleRate, encoding, isSigned, bigEndian);
498 jint encoding, jfloat sampleRate, jint sampleSizeInBits, jint frameSize, jint channels,
510 (int) frameSize, (int) channels,
519 info->channels = channels;
634 || ((info->channels * info->sampleSizeInBits / 8) != info->frameSize)