Lines Matching refs:nbytes
465 int nbytes, writecount, writen ; in mpeg_l3_encode_write_short_mono() local
473 …nbytes = lame_encode_buffer (pmpeg->lamef, ptr + total, NULL, writecount, pmpeg->block, pmpeg->blo… in mpeg_l3_encode_write_short_mono()
474 if (nbytes < 0) in mpeg_l3_encode_write_short_mono()
475 { psf_log_printf (psf, "lame_encode_buffer returned %d\n", nbytes) ; in mpeg_l3_encode_write_short_mono()
479 if (nbytes) in mpeg_l3_encode_write_short_mono()
480 { writen = psf_fwrite (pmpeg->block, 1, nbytes, psf) ; in mpeg_l3_encode_write_short_mono()
481 if (writen != nbytes) in mpeg_l3_encode_write_short_mono()
482 { psf_log_printf (psf, "*** Warning : short write (%d != %d).\n", writen, nbytes) ; in mpeg_l3_encode_write_short_mono()
499 int nbytes, writecount, writen ; in mpeg_l3_encode_write_short_stereo() local
512 …nbytes = lame_encode_buffer_interleaved (pmpeg->lamef, ubuf.sbuf, writecount / 2, pmpeg->block, pm… in mpeg_l3_encode_write_short_stereo()
513 if (nbytes < 0) in mpeg_l3_encode_write_short_stereo()
514 { psf_log_printf (psf, "lame_encode_buffer returned %d\n", nbytes) ; in mpeg_l3_encode_write_short_stereo()
518 if (nbytes) in mpeg_l3_encode_write_short_stereo()
519 { writen = psf_fwrite (pmpeg->block, 1, nbytes, psf) ; in mpeg_l3_encode_write_short_stereo()
520 if (writen != nbytes) in mpeg_l3_encode_write_short_stereo()
521 { psf_log_printf (psf, "*** Warning : short write (%d != %d).\n", writen, nbytes) ; in mpeg_l3_encode_write_short_stereo()
537 int nbytes, writecount, writen ; in mpeg_l3_encode_write_int_mono() local
545 …nbytes = lame_encode_buffer_int (pmpeg->lamef, ptr + total, NULL, writecount, pmpeg->block, pmpeg-… in mpeg_l3_encode_write_int_mono()
546 if (nbytes < 0) in mpeg_l3_encode_write_int_mono()
547 { psf_log_printf (psf, "lame_encode_buffer returned %d\n", nbytes) ; in mpeg_l3_encode_write_int_mono()
551 if (nbytes) in mpeg_l3_encode_write_int_mono()
552 { writen = psf_fwrite (pmpeg->block, 1, nbytes, psf) ; in mpeg_l3_encode_write_int_mono()
553 if (writen != nbytes) in mpeg_l3_encode_write_int_mono()
554 { psf_log_printf (psf, "*** Warning : short write (%d != %d).\n", writen, nbytes) ; in mpeg_l3_encode_write_int_mono()
570 int nbytes, writecount, writen ; in mpeg_l3_encode_write_int_stereo() local
578 …nbytes = lame_encode_buffer_interleaved_int (pmpeg->lamef, ptr + total, writecount / 2, pmpeg->blo… in mpeg_l3_encode_write_int_stereo()
579 if (nbytes < 0) in mpeg_l3_encode_write_int_stereo()
580 { psf_log_printf (psf, "lame_encode_buffer returned %d\n", nbytes) ; in mpeg_l3_encode_write_int_stereo()
584 if (nbytes) in mpeg_l3_encode_write_int_stereo()
585 { writen = psf_fwrite (pmpeg->block, 1, nbytes, psf) ; in mpeg_l3_encode_write_int_stereo()
586 if (writen != nbytes) in mpeg_l3_encode_write_int_stereo()
587 { psf_log_printf (psf, "*** Warning : short write (%d != %d).\n", writen, nbytes) ; in mpeg_l3_encode_write_int_stereo()
603 int nbytes, writecount, writen ; in mpeg_l3_encode_write_float_mono() local
612 …nbytes = lame_encode_buffer_ieee_float (pmpeg->lamef, ptr + total, NULL, writecount, pmpeg->block,… in mpeg_l3_encode_write_float_mono()
614 …nbytes = lame_encode_buffer_float (pmpeg->lamef, ptr + total, NULL, writecount, pmpeg->block, pmpe… in mpeg_l3_encode_write_float_mono()
615 if (nbytes < 0) in mpeg_l3_encode_write_float_mono()
616 { psf_log_printf (psf, "lame_encode_buffer returned %d\n", nbytes) ; in mpeg_l3_encode_write_float_mono()
620 if (nbytes) in mpeg_l3_encode_write_float_mono()
621 { writen = psf_fwrite (pmpeg->block, 1, nbytes, psf) ; in mpeg_l3_encode_write_float_mono()
622 if (writen != nbytes) in mpeg_l3_encode_write_float_mono()
623 { psf_log_printf (psf, "*** Warning : short write (%d != %d).\n", writen, nbytes) ; in mpeg_l3_encode_write_float_mono()
648 int nbytes, writecount, writen ; in mpeg_l3_encode_write_float_stereo() local
658 …nbytes = lame_encode_buffer_interleaved_ieee_float (pmpeg->lamef, ptr + total, writecount / 2, pmp… in mpeg_l3_encode_write_float_stereo()
662 …nbytes = lame_encode_buffer_interleaved_ieee_float (pmpeg->lamef, ubuf.fbuf, writecount / 2, pmpeg… in mpeg_l3_encode_write_float_stereo()
665 if (nbytes < 0) in mpeg_l3_encode_write_float_stereo()
666 { psf_log_printf (psf, "lame_encode_buffer returned %d\n", nbytes) ; in mpeg_l3_encode_write_float_stereo()
670 if (nbytes) in mpeg_l3_encode_write_float_stereo()
671 { writen = psf_fwrite (pmpeg->block, 1, nbytes, psf) ; in mpeg_l3_encode_write_float_stereo()
672 if (writen != nbytes) in mpeg_l3_encode_write_float_stereo()
673 { psf_log_printf (psf, "*** Warning : short write (%d != %d).\n", writen, nbytes) ; in mpeg_l3_encode_write_float_stereo()
698 int nbytes, writecount, writen ; in mpeg_l3_encode_write_double_mono() local
708 …nbytes = lame_encode_buffer_ieee_double (pmpeg->lamef, ptr + total, NULL, writecount, pmpeg->block… in mpeg_l3_encode_write_double_mono()
712 …nbytes = lame_encode_buffer_ieee_double (pmpeg->lamef, ubuf.dbuf, NULL, writecount, pmpeg->block, … in mpeg_l3_encode_write_double_mono()
715 if (nbytes < 0) in mpeg_l3_encode_write_double_mono()
716 { psf_log_printf (psf, "lame_encode_buffer returned %d\n", nbytes) ; in mpeg_l3_encode_write_double_mono()
720 if (nbytes) in mpeg_l3_encode_write_double_mono()
721 { writen = psf_fwrite (pmpeg->block, 1, nbytes, psf) ; in mpeg_l3_encode_write_double_mono()
722 if (writen != nbytes) in mpeg_l3_encode_write_double_mono()
723 { psf_log_printf (psf, "*** Warning : short write (%d != %d).\n", writen, nbytes) ; in mpeg_l3_encode_write_double_mono()
740 int nbytes, writecount, writen ; in mpeg_l3_encode_write_double_stereo() local
750 …nbytes = lame_encode_buffer_interleaved_ieee_double (pmpeg->lamef, ptr + total, writecount / 2, pm… in mpeg_l3_encode_write_double_stereo()
754 …nbytes = lame_encode_buffer_interleaved_ieee_double (pmpeg->lamef, ubuf.dbuf, writecount / 2, pmpe… in mpeg_l3_encode_write_double_stereo()
757 if (nbytes < 0) in mpeg_l3_encode_write_double_stereo()
758 { psf_log_printf (psf, "lame_encode_buffer returned %d\n", nbytes) ; in mpeg_l3_encode_write_double_stereo()
762 if (nbytes) in mpeg_l3_encode_write_double_stereo()
763 { writen = psf_fwrite (pmpeg->block, 1, nbytes, psf) ; in mpeg_l3_encode_write_double_stereo()
764 if (writen != nbytes) in mpeg_l3_encode_write_double_stereo()
765 { psf_log_printf (psf, "*** Warning : short write (%d != %d).\n", writen, nbytes) ; in mpeg_l3_encode_write_double_stereo()