[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] WAV sink

From: Martin Braun
Subject: Re: [Discuss-gnuradio] WAV sink
Date: Tue, 27 Mar 2012 09:36:14 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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).


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

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

Attachment: pgpXVcAFJDX6I.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]