Once upon a time I started working on a project that would fade a sound file to a specified volume level over a specified amount of time. Fairly simple in theory, but in some of the theatrical work I do getting something like this working would go a long way. Here's the catch: I wrote it in C on a Linux based system, so the majority of my artistic brethren who want to know nothing of "this Lunocks thing" (as one so quaintly put it) can't use it.

Having recently found myself in a position where I'm leaving a barely trained operator in charge of a mildly complex run, I've decided that it's time to pull the thing off the shelf (where it's been gathering dust for three or four years) and remake it in a more cross-platform friendly format.

In the intervening time, I've become rather fond of Perl, but I've never done any audio programming in anything except C and Java. Has anyone around here created a Perl sound file player (Wav, MP3, Ogg, etc)? Any advice on some pitfalls I might run into? Does Perl implement mixer controls in a platform independent way, or will I still be needing to build for specific environments?

Any and all advice is appreciated.


In reply to Audio programming portability by starX

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.