Difference between revisions of "xmplayer playXM"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''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…')
 
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''function''' xmplayer_playXM(''Filename'')
+
[[Category:Lua]]
 +
'''function''' xmplayer_playXM(''Filename'')<br>
 
'''function''' xmplayer_playXM(''Stream'')
 
'''function''' xmplayer_playXM(''Stream'')
  
Line 14: Line 15:
 
|string
 
|string
 
|Path to the xm-file. If not full path is provided the workdir of ce is searched.
 
|Path to the xm-file. If not full path is provided the workdir of ce is searched.
 +
|-
 
|Stream
 
|Stream
 
|[[Stream]]
 
|[[Stream]]
Line 19: Line 21:
 
|}
 
|}
  
 +
  Example:
 +
    XMFILE=findTableFile('noise.xm')  --finds xm file attached in CE
 +
    xmplayer_playXM(XMFILE)          -- plays xm file
 +
    xmplayer_stop()                  -- stops xmplayer
 +
 +
 +
{{LuaSeeAlso}}
  
== See also ==
+
{{DISPLAYTITLE:xmplayer_playXM}}
* [[Lua]]
 

Latest revision as of 21:44, 19 March 2017

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[edit]

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[edit]