Lines Matching refs:channels

184             unsigned channels = little2u(&fmt[2]);  in sf_open_read()  local
185 if ((channels < 1) || (channels > FCC_8)) { in sf_open_read()
187 fprintf(stderr, "unsupported channels %u\n", channels); in sf_open_read()
208 unsigned bytesPerFrame = (bitsPerSample >> 3) * channels; in sf_open_read()
211 handle->info.channels = channels; in sf_open_read()
302 (info->channels > 0 && info->channels <= FCC_8) && in sf_open_write()
329 wav[22] = info->channels; in sf_open_write()
352 unsigned blockAlignment = (bitsPerSample >> 3) * info->channels; in sf_open_write()
443 memcpy_to_i16_from_u8(ptr, (unsigned char *) ptr, actualFrames * handle->info.channels); in sf_readf_short()
447 my_swab(ptr, actualFrames * handle->info.channels); in sf_readf_short()
450 memcpy_to_i16_from_i32(ptr, (const int *) temp, actualFrames * handle->info.channels); in sf_readf_short()
454 memcpy_to_i16_from_float(ptr, (const float *) temp, actualFrames * handle->info.channels); in sf_readf_short()
458 memcpy_to_i16_from_p24(ptr, (const uint8_t *) temp, actualFrames * handle->info.channels); in sf_readf_short()
462 memset(ptr, 0, actualFrames * handle->info.channels * sizeof(short)); in sf_readf_short()
495 actualFrames * handle->info.channels); in sf_readf_float()
500 memcpy_to_float_from_i16(ptr, (const short *) temp, actualFrames * handle->info.channels); in sf_readf_float()
504 memcpy_to_float_from_i32(ptr, (const int *) ptr, actualFrames * handle->info.channels); in sf_readf_float()
509 memcpy_to_float_from_p24(ptr, (const uint8_t *) temp, actualFrames * handle->info.channels); in sf_readf_float()
513 memset(ptr, 0, actualFrames * handle->info.channels * sizeof(float)); in sf_readf_float()
546 actualFrames * handle->info.channels); in sf_readf_int()
551 memcpy_to_i32_from_i16(ptr, (const short *) temp, actualFrames * handle->info.channels); in sf_readf_int()
557 memcpy_to_i32_from_float(ptr, (const float *) ptr, actualFrames * handle->info.channels); in sf_readf_int()
560 memcpy_to_i32_from_p24(ptr, (const uint8_t *) temp, actualFrames * handle->info.channels); in sf_readf_int()
564 memset(ptr, 0, actualFrames * handle->info.channels * sizeof(int)); in sf_readf_int()
589 my_swab((short *) handle->temp, desiredFrames * handle->info.channels); in sf_writef_short()
596 desiredFrames * handle->info.channels); in sf_writef_short()
620 desiredFrames * handle->info.channels); in sf_writef_float()