• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/flac-1.2.1/src/flac/

Lines Matching defs:fout

56 static FLAC__bool copy_data_(FILE *fin, FILE *fout, size_t size, const char **error, const char * const read_error, const char * const write_error)
66 if(fwrite(buffer, 1, need, fout) < need) {
249 static FLAC__bool write_to_flac_(foreign_metadata_t *fm, FILE *fin, FILE *fout, FLAC__Metadata_SimpleIterator *it, const char **error)
274 if(fseeko(fout, FLAC__metadata_simple_iterator_get_block_offset(it), SEEK_SET) < 0) {
282 if(fwrite(buffer, 1, 1, fout) < 1) {
287 if(fseeko(fout, FLAC__STREAM_METADATA_LENGTH_LEN/8, SEEK_CUR) < 0) {
293 if(fwrite(buffer, 1, ID_LEN, fout) < ID_LEN) {
298 if(!copy_data_(fin, fout, fm->blocks[block_num].size, error, "read failed in WAVE/AIFF file (011)", "write failed in FLAC file (012)"))
429 static FLAC__bool write_to_iff_(foreign_metadata_t *fm, FILE *fin, FILE *fout, off_t offset1, off_t offset2, off_t offset3, const char **error)
432 if(fseeko(fout, offset1, SEEK_SET) < 0) {
441 if(!copy_data_(fin, fout, fm->blocks[i].size, error, "read failed in WAVE/AIFF file (004)", "write failed in FLAC file (005)"))
444 if(fseeko(fout, offset2, SEEK_SET) < 0) {
453 if(!copy_data_(fin, fout, fm->blocks[i].size, error, "read failed in WAVE/AIFF file (008)", "write failed in FLAC file (009)"))
456 if(fseeko(fout, offset3, SEEK_SET) < 0) {
465 if(!copy_data_(fin, fout, fm->blocks[i].size, error, "read failed in WAVE/AIFF file (012)", "write failed in FLAC file (013)"))
517 FILE *fin, *fout;
533 if(0 == (fout = fopen(outfilename, "r+b"))) {
539 ok = write_to_flac_(fm, fin, fout, it, error);
542 fclose(fout);
574 FILE *fin, *fout;
579 if(0 == (fout = fopen(outfilename, "r+b"))) {
584 ok = write_to_iff_(fm, fin, fout, offset1, offset2, offset3, error);
586 fclose(fout);