• Home
  • Raw
  • Download

Lines Matching refs:file

44 		SndfileHandle file (filename, SFM_WRITE, SF_FORMAT_WAV | SF_FORMAT_PCM_16, 2, 44100) ;  in ceeplusplus_wchar_test()
46 if (file.refCount () != 1) in ceeplusplus_wchar_test()
47 …{ printf ("\n\n%s %d : Error : Reference count (%d) should be 1.\n\n", __func__, __LINE__, file.re… in ceeplusplus_wchar_test()
71 { SndfileHandle file ; in create_file() local
73 if (file.refCount () != 0) in create_file()
74 …{ printf ("\n\n%s %d : Error : Reference count (%d) should be zero.\n\n", __func__, __LINE__, file in create_file()
78 file = SndfileHandle (filename, SFM_WRITE, format, 2, 48000) ; in create_file()
80 if (file.refCount () != 1) in create_file()
81 …{ printf ("\n\n%s %d : Error : Reference count (%d) should be 1.\n\n", __func__, __LINE__, file.re… in create_file()
85 file.setString (SF_STR_TITLE, filename) ; in create_file()
88 file.write (sbuffer, ARRAY_LEN (sbuffer)) ; in create_file()
89 file.write (ibuffer, ARRAY_LEN (ibuffer)) ; in create_file()
90 file.write (fbuffer, ARRAY_LEN (fbuffer)) ; in create_file()
91 file.write (dbuffer, ARRAY_LEN (dbuffer)) ; in create_file()
94 file.writef (sbuffer, ARRAY_LEN (sbuffer) / file.channels ()) ; in create_file()
95 file.writef (ibuffer, ARRAY_LEN (ibuffer) / file.channels ()) ; in create_file()
96 file.writef (fbuffer, ARRAY_LEN (fbuffer) / file.channels ()) ; in create_file()
97 file.writef (dbuffer, ARRAY_LEN (dbuffer) / file.channels ()) ; in create_file()
103 check_title (const SndfileHandle & file, const char * filename) in check_title() argument
106 title = file.getString (SF_STR_TITLE) ; in check_title()
123 { SndfileHandle file ; in read_file() local
126 if (file) in read_file()
131 file = SndfileHandle (filename) ; in read_file()
134 { SndfileHandle file2 = file ; in read_file()
136 if (file.refCount () != 2 || file2.refCount () != 2) in read_file()
137 …{ printf ("\n\n%s %d : Error : Reference count (%d) should be two.\n\n", __func__, __LINE__, file.… in read_file()
142 if (file.refCount () != 1) in read_file()
143 …{ printf ("\n\n%s %d : Error : Reference count (%d) should be one.\n\n", __func__, __LINE__, file.… in read_file()
147 if (! file) in read_file()
152 if (file.format () != format) in read_file()
153 …{ printf ("\n\n%s %d : Error : format 0x%08x should be 0x%08x.\n\n", __func__, __LINE__, file.form… in read_file()
157 if (file.channels () != 2) in read_file()
158 …{ printf ("\n\n%s %d : Error : channels %d should be 2.\n\n", __func__, __LINE__, file.channels ()… in read_file()
162 if (file.frames () != ARRAY_LEN (sbuffer) * 4) in read_file()
164 (long) file.frames (), (long) ARRAY_LEN (sbuffer) * 4 / 2) ; in read_file()
173 check_title (file, filename) ; in read_file()
178 file.read (sbuffer, ARRAY_LEN (sbuffer)) ; in read_file()
179 file.read (ibuffer, ARRAY_LEN (ibuffer)) ; in read_file()
180 file.read (fbuffer, ARRAY_LEN (fbuffer)) ; in read_file()
181 file.read (dbuffer, ARRAY_LEN (dbuffer)) ; in read_file()
184 file.readf (sbuffer, ARRAY_LEN (sbuffer) / file.channels ()) ; in read_file()
185 file.readf (ibuffer, ARRAY_LEN (ibuffer) / file.channels ()) ; in read_file()
186 file.readf (fbuffer, ARRAY_LEN (fbuffer) / file.channels ()) ; in read_file()
187 file.readf (dbuffer, ARRAY_LEN (dbuffer) / file.channels ()) ; in read_file()
189 count = file.seek (file.frames () - 10, SEEK_SET) ; in read_file()
190 if (count != file.frames () - 10) in read_file()
192 (long) count, (long) (file.frames () - 10)) ; in read_file()
196 count = file.read (sbuffer, ARRAY_LEN (sbuffer)) ; in read_file()
197 if (count != 10 * file.channels ()) in read_file()
199 (long) count, (long) (10 * file.channels ())) ; in read_file()
220 { SndfileHandle file ; in ceeplusplus_extra_test() local
226 file = SndfileHandle (filename) ; in ceeplusplus_extra_test()
228 error = file.error () ; in ceeplusplus_extra_test()
234 if (file.strError () == NULL) in ceeplusplus_extra_test()
239 if (file.seek (0, SEEK_SET) != 0) in ceeplusplus_extra_test()
253 SndfileHandle file (filename) ; in ceeplusplus_rawhandle_test() local
254 handle = file.rawHandle () ; in ceeplusplus_rawhandle_test()
264 SndfileHandle file (filename) ; in ceeplusplus_takeOwnership_test() local
265 handle = file.takeOwnership () ; in ceeplusplus_takeOwnership_test()
278 SndfileHandle file (filename) ; in ceeplusplus_takeOwnership_test() local
279 SndfileHandle file2 (file) ; in ceeplusplus_takeOwnership_test()