discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: CSV file as input


From: Fons Adriaensen
Subject: Re: CSV file as input
Date: Fri, 18 Mar 2022 23:06:57 +0100

On Fri, Mar 18, 2022 at 07:12:37PM +0100, Marcus Müller wrote:

> CSV might or might not be convenient, but if C or assembler is your tool:
> The things that the GNU Radio file source reads or the file sink writes is
> exactly what you get when you take a buffer of samples and do an `fwrite` on
> that :)

Or just use a general purpose audio file library such as libsndfile.
WAV files store the sample rate as a 32-bit integer, so that can be
up to more than 4 GHz. The CAF format uses a 64-bit double. 

You'll have a file that documents the sample rate and format,
no ambiguity even if you read it 10 years after having forgotten
where it came from. For complex signals, just use two channels.

-- 
FA






reply via email to

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