On Tue, Mar 27, 2012 at 12:21:50AM -0300, John Coppens wrote: > 2) The wav sink doesn't seem to close the wav-file correctly. After > writing an 82MB file, the size of the file (bytes 4-7) were 0. Many > programs don't seem to mind this. 'snd' doesn't like it and won't open > the file. > > Also, the size of the 'data' block in the wav-file is not set. > > Though I have seen the 'closing' routine in the wav code, can it be > that it isn't called?
These bytes can only be set once the writing is finished, and it's called from the destructor, so that might not be getting called...? It also gets called when the WAV file changes. Calling close() manually is also possible (but shouldn't be necessary). MB -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Martin Braun Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe Phone: +49 721 608-43790 Fax: +49 721 608-46071 www.cel.kit.edu KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association
pgpRkIFx48Reo.pgp
Description: PGP signature
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio