Hi all interested in MP3,

i found somthing in the docs about wav:
---------------------------------------------------------------------------
use Audio;
my $buffer = 512;
my $wav = new Audio::Wav;

my $read = $wav -> read( 'testout.wav' );
my $write = $wav -> write( 'testcopy.wav', $read -> details() );

my $total = 0;
my $length = $read -> length();
while ( $total < $length )
{
        my $left = $length - $total;
        $buffer = $left unless $left > $buffer;
        my $data = $read -> read_raw( $buffer );
        last unless defined( $data );
        $write -> write_raw( $data, $buffer );
        $total += $buffer;
}
$write -> finish();
---------------------------------------------------------------------------
to write an audio file in the wav format. But what is about MP3 as input ?
How do we can get the "raw" format out of an MP3 file-format ? any idea ?
any suggestion ? any hints ? I read the MP3 docs, but can't find anything,
how to get the stream in other formats. If there is any way to include an
SDK or somthing ?

hm, looks like a new projekt. a mp3 decoder in Perl ?



greets ven

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to