tuneR (version 1.4.6)

readMP3: Read an MPEG-2 layer 3 file into a Wave object

Description

A bare bones MPEG-2 layer 3 (MP3) file reader that returns the results as 16bit PCM data stored in a Wave object.

Usage

readMP3(filename)

Value

A Wave object.

Arguments

filename

Filename of MP3 file.

Author

Olaf Mersmann olafm@statistik.tu-dortmund.de

References

The decoder source code is taken from the MAD library, see http://www.underbit.com/products/mad/.

See Also

Wave

Examples

Run this code
if (FALSE) {
## Requires an mp3 file named sample.mp3 in the current directory.
mpt <- readMP3("sample.mp3")
summary(mpt)
}

Run the code above in your browser using DataLab