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


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to