Lines Matching defs:sfinfo
142 SF_INFO sfinfo ;
146 { sfinfo.samplerate = 44100 ;
147 sfinfo.format = SF_FORMAT_RAW | SF_FORMAT_PCM_16 ;
148 sfinfo.channels = 1 ;
149 sfinfo.frames = 0 ;
152 memset (&sfinfo, 0, sizeof (sfinfo)) ;
154 if ((file = sf_open_fd (fileno (stdin), SFM_READ, &sfinfo, SF_TRUE)) == NULL)
167 if ((sfinfo.format & SF_FORMAT_TYPEMASK) != typemajor)
172 if (sfinfo.samplerate != 44100)
173 { fprintf (stderr, "\n\nError : Sample rate (%d) should be 44100\n", sfinfo.samplerate) ;
177 if (sfinfo.channels != 1)
178 { fprintf (stderr, "\n\nError : Channels (%d) should be 1\n", sfinfo.channels) ;
182 if (sfinfo.frames < count)
183 { fprintf (stderr, "\n\nError : Sample count (%ld) should be %d\n", (long) sfinfo.frames, count) ;