Lines Matching refs:format

79     handle->info.format = SF_FORMAT_WAV;  in sf_open_read()
152 unsigned format = little2u(&fmt[0]); in sf_open_read() local
154 switch (format) { in sf_open_read()
164 fprintf(stderr, "unsupported format %u\n", format); in sf_open_read()
214 handle->info.format |= SF_FORMAT_PCM_U8; in sf_open_read()
217 handle->info.format |= SF_FORMAT_PCM_16; in sf_open_read()
220 handle->info.format |= SF_FORMAT_PCM_24; in sf_open_read()
223 if (format == WAVE_FORMAT_IEEE_FLOAT) in sf_open_read()
224 handle->info.format |= SF_FORMAT_FLOAT; in sf_open_read()
226 handle->info.format |= SF_FORMAT_PCM_32; in sf_open_read()
299 int sub = info->format & SF_FORMAT_SUBMASK; in sf_open_write()
303 ((info->format & SF_FORMAT_TYPEMASK) == SF_FORMAT_WAV) && in sf_open_write()
407 size_t extra = (handle->info.format & SF_FORMAT_SUBMASK) == SF_FORMAT_FLOAT ? 14 : 0; in sf_close()
432 unsigned format = handle->info.format & SF_FORMAT_SUBMASK; in sf_readf_short() local
433 if (format == SF_FORMAT_PCM_32 || format == SF_FORMAT_FLOAT || format == SF_FORMAT_PCM_24) { in sf_readf_short()
441 switch (format) { in sf_readf_short()
481 unsigned format = handle->info.format & SF_FORMAT_SUBMASK; in sf_readf_float() local
482 if (format == SF_FORMAT_PCM_16 || format == SF_FORMAT_PCM_U8 || format == SF_FORMAT_PCM_24) { in sf_readf_float()
490 switch (format) { in sf_readf_float()
531 unsigned format = handle->info.format & SF_FORMAT_SUBMASK; in sf_readf_int() local
533 if (format == SF_FORMAT_PCM_16 || format == SF_FORMAT_PCM_U8 || format == SF_FORMAT_PCM_24) { in sf_readf_int()
541 switch (format) { in sf_readf_int()
576 switch (handle->info.format & SF_FORMAT_SUBMASK) { in sf_writef_short()
613 switch (handle->info.format & SF_FORMAT_SUBMASK) { in sf_writef_float()
638 switch (handle->info.format & SF_FORMAT_SUBMASK) { in sf_writef_int()