Lines Matching refs:file
331 " --log=# file that both stdout and strerr redirecting to\n"
332 " --file=# file for playback\n"
333 " --saveplay=# file that storing playback content, for debug\n"
334 " --readcapture=# file with previously captured content. File data\n"
395 {"file", 1, 0, OPT_READFILE},
413 bat->playback.file = optarg;
503 /* check if we have an input file for local mode */
504 if ((bat->local == true) && (bat->capture.file == NULL)) {
505 fprintf(bat->err, _("no input file for local testing\n"));
545 /* Determine logging to a file or stdout and stderr */
551 fprintf(bat->err, _("Cannot open file: %s %d\n"),
569 /* Determine capture file */
571 bat->capture.file = bat->playback.file;
573 /* create temp file for sound record and analysis */
577 fprintf(bat->err, _("Fail to create record file: %d\n"),
581 /* store file name which is dynamically created */
582 bat->capture.file = strdup(name);
583 if (bat->capture.file == NULL)
585 /* close temp file */
590 if (bat->playback.file == NULL) {
591 /* No input file so we will generate our own sine wave */
611 bat->fp = fopen(bat->playback.file, "rb");
614 fprintf(bat->err, _("Cannot open file: %s %d\n"),
615 bat->playback.file, err);
618 err = read_wav_header(bat, bat->playback.file, bat->fp, false);
719 bat.capture.file = strdup(bat.capturefile);
721 _("Using data from file %s for analysis\n"),
722 bat.capture.file);
744 free(bat.capture.file);