discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Is there any way to obtain the binary output from


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Is there any way to obtain the binary output from audio source
Date: Wed, 12 Aug 2009 11:15:49 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Aug 12, 2009 at 10:00:20AM -0700, Milo Wong wrote:
> Hi all,
> 
> I was wondering if there is anyway to obtain the binary output from audio
> source in GRC. I need this bits information as modulating signal for ASK.
> Since sound card digitized our analog voice signal to binary information in
> 16bits (suppose the sound card is 16bits), so I think it should be a way to
> directly obtain the 16bits binary output of each float symbol from audio
> source. I used to digitize them through "float to byte" type conversion,
> however, it would lost a lot of dynamic range since byte is only 8bits which
> is too imprecision.

We standardized on single precision float from the audio sinks and
sources since that carries enough precision to support both 16 and
24-bit samples transparently.

If you really want shorts, you can get them by using:

  gr.multiple_const_f(32768)
  gr.float_to_short()

Eric




reply via email to

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