Last change
on this file since 8 was
1,
checked in by peter, 13 years ago
|
initial import of current flacrip files into the trunk
|
-
Property svn:executable set to
*
|
File size:
285 bytes
|
Line | |
---|
1 | #!/usr/bin/perl -w |
---|
2 | use strict; |
---|
3 | |
---|
4 | use Audio::FLAC::Decoder; |
---|
5 | |
---|
6 | my $FLAC_FILE = shift; |
---|
7 | |
---|
8 | my $decoder = Audio::FLAC::Decoder->open($FLAC_FILE); |
---|
9 | #warn $decoder->bitrate; |
---|
10 | #exit; |
---|
11 | my $buffer; |
---|
12 | while (my $len = $decoder->sysread($buffer, 1) > 0) { |
---|
13 | print $buffer; #$len; # ord $buffer . "\n"; |
---|
14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.