/third_party/libsnd/src/ |
H A D | interleave.c | 119 { if (templen > SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (short)) in interleave_read_short() 120 count = SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (short) ; in interleave_read_short() 166 { if (templen > SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (int)) in interleave_read_int() 167 count = SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (int) ; in interleave_read_int() 216 { if (templen > SIGNED_SIZEOF (pdata->buffer) / SIGNED_SIZEOF (floa in interleave_read_float() [all...] |
H A D | command.c | 115 if (data->format < 0 || data->format >= (SIGNED_SIZEOF (simple_formats) / SIGNED_SIZEOF (SF_FORMAT_INFO))) in psf_get_format_simple() 119 memcpy (data, &(simple_formats [indx]), SIGNED_SIZEOF (SF_FORMAT_INFO)) ; in psf_get_format_simple() 174 if (data->format < 0 || data->format >= (SIGNED_SIZEOF (major_formats) / SIGNED_SIZEOF (SF_FORMAT_INFO))) in psf_get_format_major() 178 memcpy (data, &(major_formats [indx]), SIGNED_SIZEOF (SF_FORMAT_INFO)) ; in psf_get_format_major() 248 if (data->format < 0 || data->format >= (SIGNED_SIZEOF (subtype_formats) / SIGNED_SIZEOF (SF_FORMAT_INFO))) in psf_get_format_subtype() 269 for (k = 0 ; k < (SIGNED_SIZEOF (major_formats) / SIGNED_SIZEOF (SF_FORMAT_INF in psf_get_format_info() [all...] |
H A D | test_file_io.c | 192 test_seek_or_die (psf, 0, SEEK_END, 2 * SIGNED_SIZEOF (data_out), __LINE__) ; in file_read_write_test() 193 test_seek_or_die (psf, -1 * SIGNED_SIZEOF (data_out), SEEK_CUR, (sf_count_t) sizeof (data_out), __LINE__) ; in file_read_write_test() 195 test_seek_or_die (psf, SIGNED_SIZEOF (data_out), SEEK_CUR, 2 * SIGNED_SIZEOF (data_out), __LINE__) ; in file_read_write_test() 204 test_seek_or_die (psf, 2 * SIGNED_SIZEOF (data_out), SEEK_SET, 2 * SIGNED_SIZEOF (data_out), __LINE__) ; in file_read_write_test() 209 test_seek_or_die (psf, SIGNED_SIZEOF (data_out), SEEK_SET, SIGNED_SIZEOF (data_out), __LINE__) ; in file_read_write_test() 235 test_seek_or_die (psf, SIGNED_SIZEOF (data_out), SEEK_SET, SIGNED_SIZEOF (data_ou in file_read_write_test() [all...] |
H A D | sndfile.c | 1017 if (data == NULL || datasize != SIGNED_SIZEOF (int)) in sf_command() 1023 if (data == NULL || datasize != SIGNED_SIZEOF (SF_FORMAT_INFO)) in sf_command() 1028 if (data == NULL || datasize != SIGNED_SIZEOF (int)) in sf_command() 1034 if (data == NULL || datasize != SIGNED_SIZEOF (SF_FORMAT_INFO)) in sf_command() 1039 if (data == NULL || datasize != SIGNED_SIZEOF (int)) in sf_command() 1045 if (data == NULL || datasize != SIGNED_SIZEOF (SF_FORMAT_INFO)) in sf_command() 1050 if (data == NULL || datasize != SIGNED_SIZEOF (SF_FORMAT_INFO)) in sf_command() 1071 if (data == NULL || datasize != SIGNED_SIZEOF (SF_INFO)) in sf_command() 1169 if (data == NULL || datasize != SIGNED_SIZEOF (double) * psf->sf.channels) in sf_command() 1174 if (data == NULL || datasize != SIGNED_SIZEOF (doubl in sf_command() [all...] |
H A D | mat4.c | 235 if (namesize >= SIGNED_SIZEOF (name)) in mat4_read_header() 265 if (namesize >= SIGNED_SIZEOF (name)) in mat4_read_header()
|
H A D | aiff.c | 468 else if (FORMsize != psf->filelength - 2 * SIGNED_SIZEOF (chunk_size)) in aiff_read_header() 587 if (chunk_size >= SIGNED_SIZEOF (ubuf.scbuf)) in aiff_read_header() 606 if (chunk_size >= SIGNED_SIZEOF (ubuf.scbuf) - 1) in aiff_read_header() 633 if (len + 1 > SIGNED_SIZEOF (ubuf.scbuf)) in aiff_read_header() 654 if (chunk_size >= SIGNED_SIZEOF (ubuf.scbuf) - 1) in aiff_read_header() 685 if (chunk_size >= SIGNED_SIZEOF (ubuf.scbuf) - 2) in aiff_read_header() 701 if (chunk_size >= SIGNED_SIZEOF (ubuf.scbuf) - 2) in aiff_read_header() 922 if (psf_ftell (psf) >= psf->filelength - (2 * SIGNED_SIZEOF (int32_t))) in aiff_read_header() 1011 &(comm_fmt->sampleSize), &(comm_fmt->sampleRate), SIGNED_SIZEOF (comm_fmt->sampleRate)) ; in aiff_read_comm_chunk()
|
H A D | wav.c | 361 else if (psf->filelength < RIFFsize + 2 * SIGNED_SIZEOF (marker)) in wav_read_header() 363 psf_log_printf (psf, "RIFF : %u (should be %D)\n", RIFFsize, psf->filelength - 2 * SIGNED_SIZEOF (marker)) ; in wav_read_header() 365 psf_log_printf (psf, "RIFX : %u (should be %D)\n", RIFFsize, psf->filelength - 2 * SIGNED_SIZEOF (marker)) ; in wav_read_header() 367 RIFFsize = psf->filelength - 2 * SIGNED_SIZEOF (RIFFsize) ; in wav_read_header() 459 if (chunk_size > SIGNED_SIZEOF (fact_chunk)) in wav_read_header() 460 psf_binheader_readf (psf, "j", (int) (chunk_size - SIGNED_SIZEOF (fact_chunk))) ; in wav_read_header() 658 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in wav_read_header()
|
H A D | mat5.c | 334 if (size > SIGNED_SIZEOF (name) - 1) in mat5_read_header() 428 if (size > SIGNED_SIZEOF (name) - 1) in mat5_read_header()
|
H A D | rx2.c | 121 if (length >= SIGNED_SIZEOF (ubuf.cbuf)) in rx2_open()
|
H A D | sd2.c | 524 read_rsrc_str (rsrc, str_offset + 1, name, SF_MIN (SIGNED_SIZEOF (name), slen + 1)) ; in parse_str_rsrc() 548 read_rsrc_str (rsrc, data_offset + 5, value, SF_MIN (SIGNED_SIZEOF (value), slen + 1)) ; in parse_str_rsrc()
|
H A D | caf.c | 364 if (chunk_size < SIGNED_SIZEOF (DESC_CHUNK)) in caf_read_header() 382 if (chunk_size > SIGNED_SIZEOF (DESC_CHUNK)) in caf_read_header() 551 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in caf_read_header()
|
H A D | ogg_opus.c | 1709 if (data == NULL || datasize != SIGNED_SIZEOF (double)) in ogg_opus_command() 1727 if (data == NULL || datasize != SIGNED_SIZEOF (double)) in ogg_opus_command() 1742 if (data == NULL || datasize != SIGNED_SIZEOF (int)) in ogg_opus_command() 1769 if (data == NULL || datasize != SIGNED_SIZEOF (int)) in ogg_opus_command()
|
H A D | voc.c | 165 offset = psf_binheader_readf (psf, "pb", 0, creative, SIGNED_SIZEOF (creative)) ; in voc_read_header()
|
H A D | svx.c | 321 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in svx_read_header()
|
H A D | wavlike.c | 1032 if (chunk_size >= SIGNED_SIZEOF (buffer) || bytesread + chunk_size > chunk_length) in wavlike_subchunk_parse() 1048 if (chunk_size < 1 || chunk_size >= SIGNED_SIZEOF (buffer) || bytesread + chunk_size > chunk_length) in wavlike_subchunk_parse() 1079 if (chunk_size >= SIGNED_SIZEOF (buffer) || bytesread + chunk_size > chunk_length) in wavlike_subchunk_parse()
|
H A D | dwvw.c | 443 if (pdwvw->b.index > SIGNED_SIZEOF (pdwvw->b.buffer) - 4) in dwvw_encode_store_bits()
|
H A D | common.h | 85 ** value. Use SIGNED_SIZEOF instead. 87 #define SIGNED_SIZEOF(x) ((int) sizeof (x)) macro
|
H A D | w64.c | 366 if (psf_ftell (psf) >= (psf->filelength - (2 * SIGNED_SIZEOF (dword)))) in w64_read_header()
|
H A D | rf64.c | 379 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (marker)) in rf64_read_header()
|
H A D | common.c | 96 { if (psf->parselog.indx < SIGNED_SIZEOF (psf->parselog.buf) - 1) in log_putchar()
|
/third_party/libsnd/tests/ |
H A D | win32_test.c | 40 #define SIGNED_SIZEOF(x) ((int) sizeof (x)) macro 116 printf ("0) Create a file, write %d bytes and close it.\n", SIGNED_SIZEOF (data)) ; in show_fstat_error() 126 printf ("1) Re-open file in read/write mode and write another %d bytes at the end.\n", SIGNED_SIZEOF (data)) ; in show_fstat_error() 176 printf ("0) Create a file, write %d bytes and close it.\n", SIGNED_SIZEOF (data)) ; in show_lseek_error() 186 printf ("1) Re-open file in read/write mode and write another %d bytes at the end.\n", SIGNED_SIZEOF (data)) ; in show_lseek_error() 236 printf ("0) Create a file and write %d bytes.\n", SIGNED_SIZEOF (data)) ; in show_stat_fstat_error()
|
H A D | virtual_io_test.c | 110 if (vf->offset >= SIGNED_SIZEOF (vf->data)) in vfwrite() 113 if (vf->offset + count > SIGNED_SIZEOF (vf->data)) in vfwrite()
|
/third_party/libsnd/programs/ |
H A D | sndfile-play.c | 78 #define SIGNED_SIZEOF(x) ((int) sizeof (x)) macro
|