/third_party/libsnd/src/ |
D | pcm.c | 667 int bufferlen, readcount ; in pcm_read_sc2s() local 675 readcount = psf_fread (ubuf.scbuf, sizeof (signed char), bufferlen, psf) ; in pcm_read_sc2s() 676 sc2s_array (ubuf.scbuf, readcount, ptr + total) ; in pcm_read_sc2s() 677 total += readcount ; in pcm_read_sc2s() 678 if (readcount < bufferlen) in pcm_read_sc2s() 680 len -= readcount ; in pcm_read_sc2s() 689 int bufferlen, readcount ; in pcm_read_uc2s() local 697 readcount = psf_fread (ubuf.ucbuf, sizeof (unsigned char), bufferlen, psf) ; in pcm_read_uc2s() 698 uc2s_array (ubuf.ucbuf, readcount, ptr + total) ; in pcm_read_uc2s() 699 total += readcount ; in pcm_read_uc2s() [all …]
|
D | ulaw.c | 868 int bufferlen, readcount ; in ulaw_read_ulaw2s() local 876 readcount = psf_fread (ubuf.ucbuf, 1, bufferlen, psf) ; in ulaw_read_ulaw2s() 877 ulaw2s_array (ubuf.ucbuf, readcount, ptr + total) ; in ulaw_read_ulaw2s() 878 total += readcount ; in ulaw_read_ulaw2s() 879 if (readcount < bufferlen) in ulaw_read_ulaw2s() 881 len -= readcount ; in ulaw_read_ulaw2s() 890 int bufferlen, readcount ; in ulaw_read_ulaw2i() local 898 readcount = psf_fread (ubuf.ucbuf, 1, bufferlen, psf) ; in ulaw_read_ulaw2i() 899 ulaw2i_array (ubuf.ucbuf, readcount, ptr + total) ; in ulaw_read_ulaw2i() 900 total += readcount ; in ulaw_read_ulaw2i() [all …]
|
D | alaw.c | 367 int bufferlen, readcount ; in alaw_read_alaw2s() local 375 readcount = psf_fread (ubuf.ucbuf, 1, bufferlen, psf) ; in alaw_read_alaw2s() 376 alaw2s_array (ubuf.ucbuf, readcount, ptr + total) ; in alaw_read_alaw2s() 377 total += readcount ; in alaw_read_alaw2s() 378 if (readcount < bufferlen) in alaw_read_alaw2s() 380 len -= readcount ; in alaw_read_alaw2s() 389 int bufferlen, readcount ; in alaw_read_alaw2i() local 397 readcount = psf_fread (ubuf.ucbuf, 1, bufferlen, psf) ; in alaw_read_alaw2i() 398 alaw2i_array (ubuf.ucbuf, readcount, ptr + total) ; in alaw_read_alaw2i() 399 total += readcount ; in alaw_read_alaw2i() [all …]
|
D | txw.c | 242 int k, bufferlen, readcount, count ; in txw_read_s() local 248 { readcount = (len >= bufferlen) ? bufferlen : len ; in txw_read_s() 249 count = psf_fread (ubuf.cbuf, 3, readcount, psf) ; in txw_read_s() 252 for (k = 0 ; k < readcount ; k += 2) in txw_read_s() 261 len -= readcount ; in txw_read_s() 272 int k, bufferlen, readcount, count ; in txw_read_i() local 278 { readcount = (len >= bufferlen) ? bufferlen : len ; in txw_read_i() 279 count = psf_fread (ubuf.cbuf, 3, readcount, psf) ; in txw_read_i() 282 for (k = 0 ; k < readcount ; k += 2) in txw_read_i() 291 len -= readcount ; in txw_read_i() [all …]
|
D | float32.c | 515 int bufferlen, readcount ; in host_read_f2s() local 526 readcount = psf_fread (ubuf.fbuf, sizeof (float), bufferlen, psf) ; in host_read_f2s() 530 endswap_int_array (ubuf.ibuf, readcount) ; in host_read_f2s() 532 convert (ubuf.fbuf, readcount, ptr + total, scale) ; in host_read_f2s() 533 total += readcount ; in host_read_f2s() 534 if (readcount < bufferlen) in host_read_f2s() 536 len -= readcount ; in host_read_f2s() 546 int bufferlen, readcount ; in host_read_f2i() local 557 readcount = psf_fread (ubuf.fbuf, sizeof (float), bufferlen, psf) ; in host_read_f2i() 562 convert (ubuf.fbuf, readcount, ptr + total, scale) ; in host_read_f2i() [all …]
|
D | double64.c | 564 int bufferlen, readcount ; in host_read_d2s() local 575 readcount = psf_fread (ubuf.dbuf, sizeof (double), bufferlen, psf) ; in host_read_d2s() 578 endswap_double_array (ubuf.dbuf, readcount) ; in host_read_d2s() 580 convert (ubuf.dbuf, readcount, ptr + total, scale) ; in host_read_d2s() 581 total += readcount ; in host_read_d2s() 582 len -= readcount ; in host_read_d2s() 583 if (readcount < bufferlen) in host_read_d2s() 594 int bufferlen, readcount ; in host_read_d2i() local 605 readcount = psf_fread (ubuf.dbuf, sizeof (double), bufferlen, psf) ; in host_read_d2i() 610 convert (ubuf.dbuf, readcount, ptr + total, scale) ; in host_read_d2i() [all …]
|
D | vox_adpcm.c | 153 int readcount, count ; in vox_read_s() local 161 { readcount = (len > 0x10000000) ? 0x10000000 : (int) len ; in vox_read_s() 163 count = vox_read_block (psf, pvox, ptr, readcount) ; in vox_read_s() 167 if (count != readcount) in vox_read_s() 179 int k, bufferlen, readcount, count ; in vox_read_i() local 189 { readcount = (len >= bufferlen) ? bufferlen : (int) len ; in vox_read_i() 190 count = vox_read_block (psf, pvox, sptr, readcount) ; in vox_read_i() 191 for (k = 0 ; k < readcount ; k++) in vox_read_i() 194 len -= readcount ; in vox_read_i() 195 if (count != readcount) in vox_read_i() [all …]
|
D | xi.c | 514 int bufferlen, readcount ; in dpcm_read_dsc2s() local 525 readcount = psf_fread (ubuf.scbuf, sizeof (signed char), bufferlen, psf) ; in dpcm_read_dsc2s() 526 dsc2s_array (pxi, ubuf.scbuf, readcount, ptr + total) ; in dpcm_read_dsc2s() 527 total += readcount ; in dpcm_read_dsc2s() 528 if (readcount < bufferlen) in dpcm_read_dsc2s() 530 len -= readcount ; in dpcm_read_dsc2s() 540 int bufferlen, readcount ; in dpcm_read_dsc2i() local 551 readcount = psf_fread (ubuf.scbuf, sizeof (signed char), bufferlen, psf) ; in dpcm_read_dsc2i() 552 dsc2i_array (pxi, ubuf.scbuf, readcount, ptr + total) ; in dpcm_read_dsc2i() 553 total += readcount ; in dpcm_read_dsc2i() [all …]
|
D | alac.c | 174 sf_count_t readcount ; in alac_close() local 209 while ((readcount = fread (ubuf.ucbuf, 1, sizeof (ubuf.ucbuf), plac->enctmp)) > 0) in alac_close() 210 psf_fwrite (ubuf.ucbuf, 1, readcount, psf) ; in alac_close() 463 int k, readcount ; in alac_read_s() local 473 readcount = (plac->frames_this_block - plac->partial_block_frames) * plac->channels ; in alac_read_s() 474 readcount = readcount > len ? len : readcount ; in alac_read_s() 478 for (k = 0 ; k < readcount ; k++) in alac_read_s() 481 plac->partial_block_frames += readcount / plac->channels ; in alac_read_s() 482 total += readcount ; in alac_read_s() 483 len -= readcount ; in alac_read_s() [all …]
|
D | g72x.c | 230 int readcount, count ; in g72x_read_s() local 238 { readcount = (len > 0x10000000) ? 0x10000000 : (int) len ; in g72x_read_s() 240 count = g72x_read_block (psf, pg72x, ptr, readcount) ; in g72x_read_s() 245 if (count != readcount) in g72x_read_s() 257 int k, bufferlen, readcount = 0, count ; in g72x_read_i() local 267 { readcount = (len >= bufferlen) ? bufferlen : len ; in g72x_read_i() 268 count = g72x_read_block (psf, pg72x, sptr, readcount) ; in g72x_read_i() 270 for (k = 0 ; k < readcount ; k++) in g72x_read_i() 274 len -= readcount ; in g72x_read_i() 275 if (count != readcount) in g72x_read_i() [all …]
|
D | dwvw.c | 191 int k, bufferlen, readcount = 0, count ; in dwvw_read_s() local 201 { readcount = (len >= bufferlen) ? bufferlen : len ; in dwvw_read_s() 202 count = dwvw_decode_data (psf, pdwvw, iptr, readcount) ; in dwvw_read_s() 203 for (k = 0 ; k < readcount ; k++) in dwvw_read_s() 207 len -= readcount ; in dwvw_read_s() 208 if (count != readcount) in dwvw_read_s() 218 int readcount, count ; in dwvw_read_i() local 226 { readcount = (len > 0x10000000) ? 0x10000000 : (int) len ; in dwvw_read_i() 228 count = dwvw_decode_data (psf, pdwvw, ptr, readcount) ; in dwvw_read_i() 233 if (count != readcount) in dwvw_read_i() [all …]
|
D | gsm610.c | 268 int readcount, count ; in gsm610_read_s() local 276 { readcount = (len > 0x10000000) ? 0x1000000 : (int) len ; in gsm610_read_s() 278 count = gsm610_read_block (psf, pgsm610, ptr, readcount) ; in gsm610_read_s() 283 if (count != readcount) in gsm610_read_s() 295 int k, bufferlen, readcount = 0, count ; in gsm610_read_i() local 305 { readcount = (len >= bufferlen) ? bufferlen : len ; in gsm610_read_i() 306 count = gsm610_read_block (psf, pgsm610, sptr, readcount) ; in gsm610_read_i() 307 for (k = 0 ; k < readcount ; k++) in gsm610_read_i() 311 len -= readcount ; in gsm610_read_i() 321 int k, bufferlen, readcount = 0, count ; in gsm610_read_f() local [all …]
|
D | command.c | 285 int k, len, readcount, save_state ; in psf_calc_signal_max() local 311 for (readcount = 1, max_val = 0.0 ; readcount > 0 ; /* nothing */) in psf_calc_signal_max() 312 { readcount = sf_read_double ((SNDFILE*) psf, data, len) ; in psf_calc_signal_max() 313 for (k = 0 ; k < readcount ; k++) in psf_calc_signal_max() 331 int k, len, readcount, save_state ; in psf_calc_max_all_channels() local 355 readcount = len ; in psf_calc_max_all_channels() 356 while (readcount > 0) in psf_calc_max_all_channels() 357 { readcount = sf_read_double ((SNDFILE*) psf, data, len) ; in psf_calc_max_all_channels() 358 for (k = 0 ; k < readcount ; k++) in psf_calc_max_all_channels()
|
D | ms_adpcm.c | 342 int readcount, count ; in msadpcm_read_s() local 350 { readcount = (len > 0x10000000) ? 0x10000000 : (int) len ; in msadpcm_read_s() 352 if ((count = msadpcm_read_block (psf, pms, ptr, readcount)) <= 0) in msadpcm_read_s() 357 if (count != readcount) in msadpcm_read_s() 369 int k, bufferlen, readcount = 0, count ; in msadpcm_read_i() local 379 { readcount = (len >= bufferlen) ? bufferlen : len ; in msadpcm_read_i() 381 if ((count = msadpcm_read_block (psf, pms, sptr, readcount)) <= 0) in msadpcm_read_i() 384 for (k = 0 ; k < readcount ; k++) in msadpcm_read_i() 387 len -= readcount ; in msadpcm_read_i() 388 if (count != readcount) in msadpcm_read_i() [all …]
|
D | nms_adpcm.c | 751 int readcount, count ; in nms_adpcm_read_s() local 759 { readcount = (len > 0x10000000) ? 0x10000000 : (int) len ; in nms_adpcm_read_s() 761 count = nms_adpcm_read_block (psf, pnms, ptr, readcount) ; in nms_adpcm_read_s() 766 if (count != readcount) in nms_adpcm_read_s() 778 int k, bufferlen, readcount = 0, count ; in nms_adpcm_read_i() local 788 { readcount = (len >= bufferlen) ? bufferlen : len ; in nms_adpcm_read_i() 789 count = nms_adpcm_read_block (psf, pnms, sptr, readcount) ; in nms_adpcm_read_i() 791 for (k = 0 ; k < readcount ; k++) in nms_adpcm_read_i() 795 len -= readcount ; in nms_adpcm_read_i() 796 if (count != readcount) in nms_adpcm_read_i() [all …]
|
D | ima_adpcm.c | 593 int readcount, count ; in ima_read_s() local 601 { readcount = (len > 0x10000000) ? 0x10000000 : (int) len ; in ima_read_s() 603 count = ima_read_block (psf, pima, ptr, readcount) ; in ima_read_s() 607 if (count != readcount) in ima_read_s() 619 int k, bufferlen, readcount, count ; in ima_read_i() local 629 { readcount = (len >= bufferlen) ? bufferlen : (int) len ; in ima_read_i() 630 count = ima_read_block (psf, pima, sptr, readcount) ; in ima_read_i() 631 for (k = 0 ; k < readcount ; k++) in ima_read_i() 634 len -= readcount ; in ima_read_i() 635 if (count != readcount) in ima_read_i() [all …]
|
D | paf.c | 542 int k, bufferlen, readcount, count ; in paf24_read_s() local 552 { readcount = (len >= bufferlen) ? bufferlen : len ; in paf24_read_s() 553 count = paf24_read (psf, ppaf24, iptr, readcount) ; in paf24_read_s() 554 for (k = 0 ; k < readcount ; k++) in paf24_read_s() 557 len -= readcount ; in paf24_read_s() 581 int k, bufferlen, readcount, count ; in paf24_read_f() local 594 { readcount = (len >= bufferlen) ? bufferlen : len ; in paf24_read_f() 595 count = paf24_read (psf, ppaf24, iptr, readcount) ; in paf24_read_f() 596 for (k = 0 ; k < readcount ; k++) in paf24_read_f() 599 len -= readcount ; in paf24_read_f() [all …]
|
D | sds.c | 92 static int sds_read (SF_PRIVATE *psf, SDS_PRIVATE *psds, int *iptr, int readcount) ; 558 int k, bufferlen, readcount, count ; in sds_read_s() local 568 { readcount = (len >= bufferlen) ? bufferlen : len ; in sds_read_s() 569 count = sds_read (psf, psds, iptr, readcount) ; in sds_read_s() 570 for (k = 0 ; k < readcount ; k++) in sds_read_s() 573 len -= readcount ; in sds_read_s() 598 int k, bufferlen, readcount, count ; in sds_read_f() local 614 { readcount = (len >= bufferlen) ? bufferlen : len ; in sds_read_f() 615 count = sds_read (psf, psds, iptr, readcount) ; in sds_read_f() 616 for (k = 0 ; k < readcount ; k++) in sds_read_f() [all …]
|
/third_party/libsnd/programs/ |
D | sndfile-concat.c | 138 int frames, readcount ; in concat_data_fp() local 141 readcount = frames ; in concat_data_fp() 145 while (readcount > 0) in concat_data_fp() 146 { readcount = sf_readf_double (rofile, data, frames) ; in concat_data_fp() 147 sf_writef_double (wfile, data, readcount) ; in concat_data_fp() 156 int frames, readcount ; in concat_data_int() local 159 readcount = frames ; in concat_data_int() 163 while (readcount > 0) in concat_data_int() 164 { readcount = sf_readf_int (rofile, data, frames) ; in concat_data_int() 165 sf_writef_int (wfile, data, readcount) ; in concat_data_int()
|
D | common.c | 52 sf_count_t frames, readcount, k ; in sfe_copy_data_fp() local 55 readcount = frames ; in sfe_copy_data_fp() 62 { while (readcount > 0) in sfe_copy_data_fp() 63 { readcount = sf_readf_double (infile, data, frames) ; in sfe_copy_data_fp() 64 sf_writef_double (outfile, data, readcount) ; in sfe_copy_data_fp() 70 while (readcount > 0) in sfe_copy_data_fp() 71 { readcount = sf_readf_double (infile, data, frames) ; in sfe_copy_data_fp() 72 for (k = 0 ; k < readcount * channels ; k++) in sfe_copy_data_fp() 78 sf_writef_double (outfile, data, readcount) ; in sfe_copy_data_fp() 88 int frames, readcount ; in sfe_copy_data_int() local [all …]
|
D | sndfile-play.c | 96 int k, readcount, subformat ; in alsa_play() local 127 while ((readcount = sf_read_float (sndfile, buffer, BUFFER_LEN))) in alsa_play() 128 { for (m = 0 ; m < readcount ; m++) in alsa_play() 134 { while ((readcount = sf_read_float (sndfile, buffer, BUFFER_LEN))) in alsa_play() 365 int k, audio_device, readcount, writecount, subformat ; in opensoundsys_play() local 396 while ((readcount = sf_read_float (sndfile, float_buffer, BUFFER_LEN))) in opensoundsys_play() 397 { for (m = 0 ; m < readcount ; m++) in opensoundsys_play() 399 writecount = write (audio_device, buffer, readcount * sizeof (short)) ; in opensoundsys_play() 403 { while ((readcount = sf_read_short (sndfile, buffer, BUFFER_LEN))) in opensoundsys_play() 404 writecount = write (audio_device, buffer, readcount * sizeof (short)) ; in opensoundsys_play() [all …]
|
/third_party/libsnd/examples/ |
D | sfprocess.c | 69 int readcount ; in main() local 113 while ((readcount = sf_read_double (infile, data, BUFFER_LEN))) in main() 114 { process_data (data, readcount, sfinfo.channels) ; in main() 115 sf_write_double (outfile, data, readcount) ; in main()
|
D | sndfile-loopify.c | 140 int frames, readcount ; in sfe_copy_data_int() local 143 readcount = frames ; in sfe_copy_data_int() 145 while (readcount > 0) in sfe_copy_data_int() 146 { readcount = sf_readf_int (infile, data, frames) ; in sfe_copy_data_int() 147 sf_writef_int (outfile, data, readcount) ; in sfe_copy_data_int()
|
D | generate.c | 91 int k, readcount ; in encode_file() local 121 while ((readcount = sf_read_float (infile, buffer, BUFFER_LEN)) > 0) in encode_file() 122 sf_write_float (outfile, buffer, readcount) ; in encode_file()
|
/third_party/libsnd/Octave/ |
D | sndfile.cc | 97 int readcount ; variable 101 { readcount = sf_readf_float (file, buffer, BUFFER_FRAMES) ; 104 if (total + readcount > sfinfo.frames) 105 readcount = sfinfo.frames - total ; 108 { for (int k = 0 ; k < readcount ; k++) 112 total += readcount ; 113 } while (readcount > 0 && total < sfinfo.frames) ;
|