Messenger Plus! Live - Scripting Documentation
The MsgPlus::PlaySound function plays a sound asynchronously. It
can also be used to stop the current sound from playing.
溴>
Messenger Plus! Live -脚本文件
物体的参考-m sgplus
msgplus : : playsound
该msgplus : : playsound功能发挥了良好的异步。它
也可以被用来停止目前的良好发挥。
该msgplus : : playsound功能发挥了良好的异步。它
也可以被用来停止目前的良好发挥。
Syntax
[boolean] PlaySound(
[string] SoundFile
[number,optional] MaxPlayTime
);
Parameters
- SoundFile
- [string] Path to the sound file to play. The path is relative to the script's
directory by default, to override this behavior, prefix the path
with "\". Example: "\C:\directory\sound.mp3". If
this string is empty, the current sound playing is stopped and the
function returns.
- MaxPlayTime
- [number, optional] If specified, this parameter sets a maximum
play time for the sound, in milliseconds. If the time specified is
longer than the sound, the sound will be played to its end.
Return Value
A boolean value specifying if the sound started to play successfully
(or if a sound was stopped when SoundFile
is an empty string).
一个布尔值,指明如果声音开始发挥成功
(或者如果一个健全被截停时, soundfile
是一个空字符串) 。
一个布尔值,指明如果声音开始发挥成功
(或者如果一个健全被截停时, soundfile
是一个空字符串) 。
This function typically fails for the following reason:
这项功能通常失败,原因如下:
这项功能通常失败,原因如下:
- The sound file type is not supported. See Remarks.
Remarks
If a sound that was started by this function is already playing, it
is stopped before the new sound starts playing.
如果一个健全,这是开始,由这个功能已经在发挥,
前停止新的声音开始播放。
如果一个健全,这是开始,由这个功能已经在发挥,
前停止新的声音开始播放。
Here is a list of sound file types supported by Messenger Plus!. This support
is possible thanks in part to the
LibSndFile
and Lame MP3
libraries:
这里是一个名单,健全支持的文件类型由Messenger Plus!这种支持
是有可能的感谢,部分向
libsndfile
和跛脚的MP3
图书馆:
- Microsoft WAV, Sphere Nist (*.wav)
- MPEG Audio (*.mp1;*.mp2;*.mp3)
- Amiga (*.iff;*.svx)
- Apple/SGI (*.aif)
- Berkeley/Ircam (*.sf)
- Creative Labs (*.voc)
- Ensoniq Paris (*.paf)
- GNU Octave (*.mat4;*.mat5)
- Sound Forge (*.w64)
- Sun/Next (*.au;*.snd)
- Free Lossless Audio Codec (*.fla;*.flac)
- Apple CAF (*.caf)
Function Information
| Object |
MsgPlus |
| Availability |
Messenger Plus! Live 4.00 |
See Also
MsgPlus Object.
msgplus对象。
Sponsor
Links
Scripts文档目录
脚本库
FAQ