⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hgefunc_musicload.html

📁 2D游戏引擎hge的代码
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- http://hge.relishgames.com -->

<html>

<head>
<meta name="Keywords" content="game engine, 2d, hardware accelerated, hge, engine, relish games, game development">
<meta name="Description" content="Haaf's Game Engine - Hardware accelerated 2D games engine">
<title>Haaf's Game Engine - Hardware accelerated 2D games engine</title>
<link rel=stylesheet type=text/css href=hge.css>
<script language="JavaScript" src="hge.js"></script>
</head>

<body onload="setContents('cnt_hgefunc.html');" bgcolor=#ffffff text=#000000 link=#7F0000 vlink=#7F0000 alink=#7F0000 marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<table height=100% cellspacing=0 cellpadding=0 border=0><tr>

<td valign=top>
<table width=566 cellspacing=0 cellpadding=20 border=0><tr><td>
<h1 style="margin-top:0px">HGE::Music_Load</h1>
<p>
Loads a music from memory, resource pack or disk file.
</p>
<pre>
HMUSIC Music_Load(
  char *<i><b>filename</b></i>,
  DWORD <i><b>size</b></i> = 0
);
</pre>
<h2>Parameters</h2>
<dl>
<dt><i>filename</i>
<dd>Music file name.
<dt><i>size</i>
<dd>If this parameter isn't 0, it is the size of memory block containing the music
in one of the known formats and the parameter <b>filename</b> is treated as a pointer to this block.
</dl>
<h2>Return value</h2>
<p>
If successful, returns the music handle to be used with
<a href="hgefunc_musicplay.html">Music_Play</a> function.
Otherwise returns 0.
</p>
<h2>Remarks</h2>
<p>
Supports <b>MO3</b>, <b>IT</b>, <b>XM</b>, <b>S3M</b>, <b>MTM</b>, <b>MOD</b> and <b>UMX</b> music file formats.
<br><br>
If <a href="hgeconst_systemstate.html#HGE_RESOURCEFILE">HGE_RESOURCEFILE</a> system state wasn't set, searches
application folder for the requested music.
<br><br>
If <a href="hgeconst_systemstate.html#HGE_RESOURCEFILE">HGE_RESOURCEFILE</a> system state was set, searches
the resource pack for the requested music. Then, if the music doesn't
appear to be there, searches application folder.
<br><br>
If the function fails, you may obtain error message with <a href="hgefunc_systemgeterror.html">System_GetErrorMessage</a>
function. Also if <a href="hgeconst_systemstate.html#HGE_LOGFILE">HGE_LOGFILE</a> system state was set, the
error message is written to log.
<br><br>
When the music isn't needed longer, you must delete it with
<a href="hgefunc_musicfree.html">Music_Free</a> function.
</p>
<h2>Requirements</h2>
<p>
<b>Header:</b> hge.h<br>
<b>Import library:</b> hge.lib
</p>
<h2>See also</h2>
<p>
<a href="hgefunc_musicfree.html">Music_Free</a>,
<a href="hgefunc_musicplay.html">Music_Play</a>
</p>
<br>
</td></tr></table>
</td>

</tr></table>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -