[Top][All Lists]

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

Re: [Discuss-gnuradio] Raw sample storage format

From: James Mastros
Subject: Re: [Discuss-gnuradio] Raw sample storage format
Date: Thu, 10 Mar 2005 12:50:53 +0100
User-agent: Debian Thunderbird 1.0 (X11/20050116)

Dan Gisselquist wrote:

A standard header for data files makes a lot of sense.

Indeed it does, with the stress being on /standard/. Use RIFF WAV, which already has the most important fields standardized, and is common for use with audio applications. The fields it doesn't have can be placed in custom chunks, IIRC.

> On 03/09/2005 12:03:45 PM, David Carr wrote:
>> example header:  [data could be stored in text or binary format -
>> binary  shown]
>> uint16                          [magic key to descriminate headerless
>> files  from files with headers - for backwards compatibility]
>> char[255]                    name/description
>> sizeof(struct timeval)   date
>> char[255]                    comments
>> uint32                         sample_rate
>> uint8                           bits_per_sample
>> double                         if_freq

(In particular, it has sample_rate and bits_per_sample, but not if_freq. Not sure about the date and freeform comments fields.)

BTW, don't replace RAW with this, but add support for it. RAW can be very useful in certain spaces.

        -=- James Mastros

reply via email to

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