Hey all

I want to make a program which does the following :

- Input audio from sound card line-in
- Get it in raw format (FIFO of the data, xxxx Hz sampling rate x xxxx bit resolution)
- Do some processing which would be suitable to show a matching visualization (so need to be able to run DTFT to obtain the spectrum)

This should be able to run in near real time (no requiring of "proper" real time, just be able to run along with the arriving analog input, not buffering it all for revisit later

This should run on a modern Linux system, where the main sound platform is ALSA, and support for old Linux sound technologies (OSS, etc) might not be available or not work correctly etc

So what i am asking is, what libraries or example code would you recommend me to look into ? - I found several mentions of modules on cpan which use OSS, but i am not sure whether it is supported properly on modern linux, and whether there are any newer and better suited libraries which are not widely known

Best Wishes - Ash

In reply to Audio input and processing - recommendations by Ashx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.