Lines Matching refs:file
13 SNDFILE *file;
20 if ((file = sf_open(filename, SFM_READ, &sfinfo)) == NULL)
22 printf("can't open file '%s'\n", filename);
26 printf("\n---- get cues of file '%s'\n", filename);
28 if ((err = sf_command(file, SFC_GET_CUE_COUNT, &count, sizeof(uint32_t))) == SF_FALSE)
30 if (sf_error(file))
32 printf("can't get cue info size for file '%s' (arg size %lu), err %s\n",
33 filename, sizeof(uint32_t), sf_strerror(file));
37 printf("no cue info for file '%s'\n", filename);
47 if (sf_command(file, SFC_GET_CUE, info, size) == SF_FALSE)
49 printf("can't get cue info of size %d for file '%s' error %s\n",
50 size, filename, sf_strerror(file));
55 sf_close(file);