Linux SoftwareProgrammingLibrariesAudio::DSP 0.02

Audio::DSP 0.02


Audio::DSP is a Perl interface to *NIX digital audio device. SYNOPSIS use Audio::DSP; ($buf, $chan, $fmt, $rate) = (
Developer:   Seth David Johnson
      more software by author →
Price:  0.00
License:   GPL (GNU General Public License)
File size:   27K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Audio::DSP is a Perl interface to *NIX digital audio device.

SYNOPSIS

use Audio::DSP;

($buf, $chan, $fmt, $rate) = (4096, 1, 8, 8192);

$dsp = new Audio::DSP(buffer => $buf,
channels => $chan,
format => $fmt,
rate => $rate);

$seconds = 5;
$length = ($chan * $fmt * $rate * $seconds) / 8;

$dsp->init() || die $dsp->errstr();

# Record 5 seconds of sound
for (my $i = 0; $i < $length; $i += $buf) {
$dsp->read() || die $dsp->errstr();
}

# Play it back
for (;;) {
$dsp->write() || last;
}

$dsp->close();

Audio::DSP is built around the OSS (Open Sound System) API and allows perl to interface with a digital audio device. It provides, among other things, an initialization method which opens and handles ioctl messaging on the audio device file. Audio::DSP also provides some rudimentary methods for the storage and manipulation of audio data in memory.

In order to use Audio::DSP, you'll need to have the necessary OSS drivers/libraries installed. OSS is available for many popular Unices, and a GPLed version (with which this extension was initially developed and tested) is distributed with with the Linux kernel.

Requirements:
  • Perl
    tags audio dsp  audio device  dsp errstr  die dsp  use audio  digital audio  fmt rate  

    Download Audio::DSP 0.02


     http://mirrors.evolva.ro/CPAN/authors/id/S/SE/SETHJ/Audio-DSP-0.02.tar.gz


    Authors software

    Audio::DSP 0.02 (by Seth David Johnson)
    Audio::DSP is a Perl interface to *NIX digital audio device.

    SYNOPSIS

    use Audio::DSP;

    ($buf, $chan, $fmt, $rate) = (


    Similar software

    Audio::DSP 0.02 (by Seth David Johnson)
    Audio::DSP is a Perl interface to *NIX digital audio device.

    SYNOPSIS

    use Audio::DSP;

    ($buf, $chan, $fmt, $rate) = (

    Audio::Play 1.029 (by Nick Ing-Simmons)
    Audio::Play is an interface for Audio::Data to hardware.

    SYNOPSIS

    use Audio::Data;
    use Audio::Play;

    $audio = Audio:

    Audio::Ao 0.01 (by Dan Pemstein)

    Audio::File::AudioProperties 0.10 (by Florian Ragwitz)
    Audio::File::AudioProperties is a Perl module that can abstract an audio file's audio properties.

    Audio::File::AudioProperties is

    Audio::SPX 0.0801 (by David Huggins-Daines)
    Audio::SPX is a Perl interface to the Sphinx-II audio library.

    SYNOPSIS

    use Audio::SPX;
    my $ad = Audio::SPX->open_sps(1600

    Audio::File 0.10 (by Florian Ragwitz)
    Audio::File is a audio file abstraction library.

    SYNOPSIS

    use Audio::File;
    my $file = Audio::File->new( "foo.bar" );

    Audio::OSS 0.0501 (by David Huggins-Daines)

    Audio::ESD 0.02 (by David Huggins-Daines)
    Audio::ESD is a Perl extension for talking to the Enlightened Sound Daemon.

    SYNOPSIS

    use Audio::ESD;
    my $stream = Audio::E

    Audio::TagLib::AudioProperties 1.42 (by Dongxu Ma)
    Audio::TagLib::AudioProperties is a simple, abstract interface to common audio properties.

    DESCRIPTION

    The values here are comm

    Audio::CD 0.04 (by Doug MacEachern)


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags