Difference between revisions of "xmplayer playXM"
Jump to navigation
Jump to search
(qGHhffcB) |
m (Reverted edits by 201.220.92.10 (Talk) to last revision by Freiza) |
||
Line 1: | Line 1: | ||
− | + | '''function''' xmplayer_playXM(''Filename'')<br> | |
+ | '''function''' xmplayer_playXM(''Stream'') | ||
+ | |||
+ | Plays an XM file that is stored in a file or in a memory stream obtained from a tablefile object | ||
+ | |||
+ | |||
+ | ===Function Parameters=== | ||
+ | {|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0" | ||
+ | !align="left"|Parameter | ||
+ | !align="left"|Type | ||
+ | !style="width: 80%;background-color:white;" align="left"|Description | ||
+ | |- | ||
+ | |Filename | ||
+ | |string | ||
+ | |Path to the xm-file. If not full path is provided the workdir of ce is searched. | ||
+ | |- | ||
+ | |Stream | ||
+ | |[[Stream]] | ||
+ | |A stream object that contains the data of the xm-file | ||
+ | |} | ||
+ | |||
+ | Example: | ||
+ | XMFILE=findTableFile('noise.xm') --finds xm file attached in CE | ||
+ | xmplayer_playXM(XMFILE) -- plays xm file | ||
+ | xmplayer_stop() -- stops xmplayer | ||
+ | |||
+ | == See also == | ||
+ | * [[Lua]] | ||
+ | |||
+ | {{DISPLAYTITLE:xmplayer_playXM}} |
Revision as of 18:50, 15 May 2012
function xmplayer_playXM(Filename)
function xmplayer_playXM(Stream)
Plays an XM file that is stored in a file or in a memory stream obtained from a tablefile object
Function Parameters
Parameter | Type | Description |
---|---|---|
Filename | string | Path to the xm-file. If not full path is provided the workdir of ce is searched. |
Stream | Stream | A stream object that contains the data of the xm-file |
Example: XMFILE=findTableFile('noise.xm') --finds xm file attached in CE xmplayer_playXM(XMFILE) -- plays xm file xmplayer_stop() -- stops xmplayer
See also