Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 4 of 4) sorted by relevance

/liblc3-3.5.0-3.4.0/tools/
Dlc3bin.c45 int lc3bin_read_header(FILE *fp, in lc3bin_read_header() argument
50 if (fread(&hdr, sizeof(hdr), 1, fp) != 1 in lc3bin_read_header()
59 fseek(fp, SEEK_SET, hdr.header_size); in lc3bin_read_header()
67 int lc3bin_read_data(FILE *fp, int nchannels, void *buffer) in lc3bin_read_data() argument
71 if (fread(&nbytes, sizeof(nbytes), 1, fp) < 1 in lc3bin_read_data()
74 || fread(buffer, nbytes, 1, fp) < 1) in lc3bin_read_data()
83 void lc3bin_write_header(FILE *fp, in lc3bin_write_header() argument
97 fwrite(&hdr, sizeof(hdr), 1, fp); in lc3bin_write_header()
103 void lc3bin_write_data(FILE *fp, in lc3bin_write_data() argument
107 fwrite(&nbytes, sizeof(nbytes), 1, fp); in lc3bin_write_data()
[all …]
Dwave.c92 int wave_read_header(FILE *fp, int *bitdepth, int *samplesize, in wave_read_header() argument
99 if (fread(&file, sizeof(file), 1, fp) != 1 in wave_read_header()
104 if (fread(&format, sizeof(format), 1, fp) != 1 in wave_read_header()
110 fseek(fp, sizeof(format) - (8 + format.size), SEEK_CUR); in wave_read_header()
112 if (fread(&data, sizeof(data), 1, fp) != 1 in wave_read_header()
128 int wave_read_pcm(FILE *fp, int samplesize, in wave_read_pcm() argument
131 return fread(buffer, nch * samplesize, count, fp); in wave_read_pcm()
137 void wave_write_header(FILE *fp, int bitdepth, int samplesize, in wave_write_header() argument
168 fwrite(&header, sizeof(header), 1, fp); in wave_write_header()
174 void wave_write_pcm(FILE *fp, int samplesize, in wave_write_pcm() argument
[all …]
Dlc3bin.h36 int lc3bin_read_header(FILE *fp,
46 int lc3bin_read_data(FILE *fp, int nchannels, void *buffer);
57 void lc3bin_write_header(FILE *fp,
67 void lc3bin_write_data(FILE *fp,
Dwave.h36 int wave_read_header(FILE *fp, int *bitdepth, int *samplesize,
47 int wave_read_pcm(FILE *fp, int samplesize,
59 void wave_write_header(FILE *fp, int bitdepth, int samplesize,
69 void wave_write_pcm(FILE *fp, int samplesize,