Home
last modified time | relevance | path

Searched refs:SIGNED_SIZEOF (Results 1 - 23 of 23) sorted by relevance

/third_party/libsnd/src/
H A Dinterleave.c119 { 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 Dcommand.c115 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 Dtest_file_io.c192 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 Dsndfile.c1017 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 Dmat4.c235 if (namesize >= SIGNED_SIZEOF (name)) in mat4_read_header()
265 if (namesize >= SIGNED_SIZEOF (name)) in mat4_read_header()
H A Daiff.c468 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 Dwav.c361 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 Dmat5.c334 if (size > SIGNED_SIZEOF (name) - 1) in mat5_read_header()
428 if (size > SIGNED_SIZEOF (name) - 1) in mat5_read_header()
H A Drx2.c121 if (length >= SIGNED_SIZEOF (ubuf.cbuf)) in rx2_open()
H A Dsd2.c524 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 Dcaf.c364 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 Dogg_opus.c1709 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 Dvoc.c165 offset = psf_binheader_readf (psf, "pb", 0, creative, SIGNED_SIZEOF (creative)) ; in voc_read_header()
H A Dsvx.c321 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (chunk_size)) in svx_read_header()
H A Dwavlike.c1032 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 Ddwvw.c443 if (pdwvw->b.index > SIGNED_SIZEOF (pdwvw->b.buffer) - 4) in dwvw_encode_store_bits()
H A Dcommon.h85 ** value. Use SIGNED_SIZEOF instead.
87 #define SIGNED_SIZEOF(x) ((int) sizeof (x)) macro
H A Dw64.c366 if (psf_ftell (psf) >= (psf->filelength - (2 * SIGNED_SIZEOF (dword)))) in w64_read_header()
H A Drf64.c379 if (psf_ftell (psf) >= psf->filelength - SIGNED_SIZEOF (marker)) in rf64_read_header()
H A Dcommon.c96 { if (psf->parselog.indx < SIGNED_SIZEOF (psf->parselog.buf) - 1) in log_putchar()
/third_party/libsnd/tests/
H A Dwin32_test.c40 #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 Dvirtual_io_test.c110 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 Dsndfile-play.c78 #define SIGNED_SIZEOF(x) ((int) sizeof (x)) macro

Completed in 25 milliseconds