WavPlayer(sound)
WavPlayer()所属R语言包:sound
Set or Get the System Command for Playing WAV Files
设置或获取播放WAV文件系统命令
译者:生物统计家园网 机器人LoveR
描述----------Description----------
findWavPlayer returns the most common system commands on your OS for playing wav files.
findWavPlayer您的操作系统中最常见的系统命令返回播放WAV文件。
WavPlayer returns the command that is currently used by play.
WavPlayer返回的命令,目前使用的play。
setWavPlayer is used to define the command to be used by play.
setWavPlayer被用来定义命令要使用的play。
用法----------Usage----------
WavPlayer()
setWavPlayer(command=NULL)
参数----------Arguments----------
参数:command
a vector of character strings giving the command to be used as "command wavfile.wav". If it contains more than one string, the commands are tested one after the other, and the first one that works properly will be used for future calls of the play command. If command=NULL,the command findWavPlayer() is used to determine the standard commands for your system.
给予命令字符串的矢量被用来作为"command wavfile.wav"。如果它包含多个字符串,该命令测试后,将用于未来的呼叫play命令的第一个正常工作。如果command=NULL,命令findWavPlayer()被用来确定您的系统的标准命令。
Details
详细信息----------Details----------
The play command makes a system call of the form "}command\code{ }wavfile\code{.wav", where 'command' is the string returned by WavPlayer().
play命令使系统调用的形式"}command\code{ }wavfile\code{.wav",命令是的字符串返回WavPlayer()。
The default commands are 'mplay32 /play' (calling the Windows media player) for Win32-systems and 'play' and 'playwave' for Linux systems. Other commands will be added in future versions of this package.
默认命令是'mplay32 /play'(调用Windows媒体播放器)适用于Win32系统和'play'和'playwave'的Linux系统。其他命令将被添加在未来的版本中,这个包。
While the Windows Media player is included in the standard Windows installation, playwave might have to be installed manually. Under RedHat Linux playwave is part of the SDL\_mixer package. To download it, go to http://www.libsdl.org/projects/SDL_mixer.
虽然Windows媒体播放器是包含在标准的Windows安装,可能有安装playwave,手动。根据RedHat Linux的playwave是SDL \ _mixer包的一部分。要下载它,去到http://www.libsdl.org/projects/SDL_mixer“。
But any other program that provides a system call of the above form to play wav files is also fine. Please report additional play commands to the author (send an email to mail@MatthiasHeymann.de) so that they can be recognized automatically in future versions of this package.
但是,任何其他程序提供了一个系统调用上面的形式来播放WAV文件也就好了。请提供更多关于发挥命令的作者(发送电子邮件至mail@MatthiasHeymann.de)的,使他们能够被自动识别,在未来的版本中这个包。
setWavPlayer is called directly after loading the package.
setWavPlayer被称为后直接加载的包。
When setWavPlayer is called, it tries to play an empty wav file, using the new command(s). If it fails, no changes are made.
当setWavPlayer被调用时,它试图扮演一个空的wav文件,使用新的命令(s)。如果失败的话,不进行任何更改。
值----------Value----------
WavPlayer returns the wav play command that is currently used, or NULL, if none is selected yet.
WavPlayer返回的wav播放,目前使用的命令,或NULL,如果没有被选中。
findWavPlayer returns the default commands for your system, or NULL, if no command is known for your system.
findWavPlayer返回的默认命令为您的系统,或NULL,如果没有命令被称为为您的系统。
(作者)----------Author(s)----------
Matthias Heymann
参见----------See Also----------
play for playing Sample objects or wav files.
play Sample对象或WAV文件播放。
实例----------Examples----------
setWavPlayer("playwave")
# tries to set the command "playwave wavfile.wav" as the [尝试设置的命令“playwave wavfile.wav的”]
# preference for playing wav files with the play command.[播放WAV文件的播放命令的偏好。]
# If successful,[如果成功的话,]
WavPlayer()
# returns the string "playwave" afterwards.[之后返回的字符串“playwave”。]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|