Read an MPEG-2 layer 3 file into a Wave object
阅读MPEG-2层3个文件到Wave对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A bare bones MPEG-2 layer 3 (MP3) file reader that returns the results as 16bit PCM data stored in a Wave object.
一个光秃秃的骨头MPEG-2层3(MP3)文件阅读器,它返回的结果为16位PCM数据存储在一个Wave对象。
用法----------Usage----------
readMP3(filename)
参数----------Arguments----------
参数:filename
Filename of MP3 file.
MP3文件的文件名。
值----------Value----------
A Wave object.
AWave对象。
注意----------Note----------
The decoder can currently only handle files which are either mono or stereo. This is a limitation of the Wave object and the underlying MAD decoder.
目前该解码器可以处理的文件,这是单声道或立体声。这是一个限制的Wave对象和底层MAD解码器。
(作者)----------Author(s)----------
Olaf Mersmann <a href="mailtolafm@statistik.tu-dortmund.de">olafm@statistik.tu-dortmund.de</a>
参考文献----------References----------
The decoder source code is taken from the MAD library, see http://www.underbit.com/products/mad/.
参见----------See Also----------
Wave
Wave
实例----------Examples----------
## Not run: [#不运行:]
## Requires an mp3 file named sample.mp3 in the current directory.[#需要一个MP3文件名为sample.mp3在当前目录中。]
mpt <- readMP3("sample.mp3")
summary(mpt)